Initial wiki implementation#1977
Draft
futureshape wants to merge 4 commits intoemfcamp:mainfrom
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #1949 - leaving it as draft as there are several architectural changes yet to be decided, and I still need to test some paths, but though I'd ask or early feedback.
Created a new
/wikiapp to serve wiki pages. Proposing to keep that flexibility rather than assume we put all wiki pages in/aboutor similar.Main UI changes
Wiki landing page
/wikishows a list of pages and an option to create a new page, which is restricted to adminsCreate page
/wiki/newcreates a new page - I think it's better to do this through a form than to require a deployment for new wiki pages. Slug and title can be set independently.View page
/wiki/<slug>renders the page using the same markdown to HTML method as the village pages. Option to edit restricted to logged in members.❓ Do we want to restrict this to only logged in people who have a ticket?
❓ Do we want to display editor names here? (also applies to edit history)
Edit page
/wiki/<slug>/editlets people edit the page❓ Should we allow page title changes, and if yes maybe restrict this to admins only?
❓ Do we actually need edit summaries?
View page history
/wiki/<slug>/historyshows the page history and links to comparison (diffs)Compare page versions
/wiki/<slug>/diff/<v1>/<v2>shows a markdown diff in the standard formatOther changes
Moved
render_markdown(untrusted markdown renderer) toapps/common/__init__.pytogether with other markdown functionality so it can be used by both villages and wiki.TODO
Assisted-by: Claude Sonnet 4.6