Implement a basic encyclopedia page #6997
No reviewers
Labels
No Label
Closed
Duplicate
Closed
Fixed
Closed
Invalid
Closed
Needs info
Closed
Won't fix
Closed
Works for me
Difficulty
Hard
Difficulty
Medium
Difficulty
Simple
Needed for Beta
Needs Design Input
Needs Info
Pathfinding
Priority
1: Release Blocker
Priority
2: Must Have
Priority
3: Should Have
Priority
4: Nice To Have
Priority
5: If Time Permits
Regression
Theme
AI
Theme
Art & Animation
Theme
Atlas editor
Theme
Build & Packages
Theme
Core engine
Theme
Internationalization & Localization
Theme
Maps
Theme
Multiplayer Lobby
Theme
Music & Sound FX
Theme
Network
Theme
Non-game systems
Theme
Simulation
Theme
UI & Simulation
Theme
UI – Game setup
Theme
UI – In-game
Theme
UI – Miscellaneous
Theme
Website & Forum
Type
Defect
Type
Enhancement
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: 0ad/0ad#6997
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Vantha/0ad:encyclopedia"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Continuation from D5319
dfe5e5f369
to46345299ac
Explanation (adopted from the diff on Phabrictor):
This diff contains a version of the encyclopedia page with the basic functionality of navigating through the directory tree and reading articles.
It will likely not be committed here on Phabricator, but I want to open the discussion and get the stone rolling. After the migration to git, I will transfer the changes to a git pull request with a link to this diff.Explanation of the code:
The encyclopedia directory tree is stored in EncyclopediaStructure.js. It is divided into three layers: categories (About this Encyclopedia, Nature and Environment, 0 A.D.'s civilizations, etc.), subcategories, and the articles themselves.
The NavigationPanel is the long bar on the right and contains buttons to select categories.
After doing so, the IntroductionPanel displays the individual category (with a title and an introduction) and provides buttons to select a subcategory. The civilization category is an exception: When opening it, no specific civilization is selected and no subcategory buttons are shown. Instead a civilization selection dropdown is given in the top right. Only after selecting one are subcategory options provided. (All that is still handled by the IntroductionPanel)
After selecting one, the subcategory's articles are listed in the SelectionPanel.
After double clicking one of article titles, the corresponding article is opened in the ArticlePanel (currently comprised of only a title and a text).
Some other notes:
storing the introduction texts in .txt files is suboptimal. I could convert them into JSONs, but some would stay really short, and from a logical standpoint, they currently don't need to be written in object notation.(I converted the into JSONs)Why are some pipelines failing? Does it have to do with the code? I can't tell from the logs.
I know this pull request is huge... but could someone take some time to review the code?
d05f0b0904
to3eb27322ea
Checkout
From your project repository, check out a new branch and test the changes.