-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add '-web-documentation' to start a simple web server with documentation #922
Conversation
Why would there be a need for a built in documentation webserver if there's already the Grasscutter wiki and other resources? |
^^^ |
A web documentation unlike the wiki can give the exact information for the running version (maybe the version being used is old and the wiki has newer information that do not work on older version or vice versa). Moreover for example if the available commands change (for example some are disabled in a specific server instance) a live version of the documentation can reflect the changes immediately |
attach the DocumentationServerHandler to current http server , you can serve online docs when server running at / or /docs/, no extra command needed.
|
Ok will update to do this, thanks 👍 |
src/main/java/emu/grasscutter/documentation/DocumentationHandler.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolve Benj's request first
- '/documentation': home page with all links - '/documentation/handbook': html version of the gm handbook - '/documentation/gachamapping': json document with the gacha mappings
Add a web documentation handler to provide documentation for easy consultation.
/documentation
: home page with all links/documentation/handbook
: html version of the gm handbook/documentation/gacha
: json document with the gacha mappingsMore pages can be easily added
Description
Issues fixed by this PR
Type of changes
Checklist: