Generate config documentation for use on the website #3
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
There are a ton that are not documented, I also think there's a
workersconfig option maybe from one of the HTTP libraries?Don't think it's that useful though if all the request stuff is on the main tokio runtime either way.
One way to do this is to generate and make available a JSON Schema document that describes the configuration file via
schemars. This way, the documentation is generated from the code, which helps make sure the documentation doesn't become stale.I believe this is completed at this point. A better way to do it like mentioned above is still an option for the future, but currently the
conduwuit-example.tomlfile has about 95% of the available config options and is kept up to date on new additions.Bringing this back as I'd like to get our config options documented on the website through some form of config generation / schema (see above using
schemars), but I do not want to maintain two sets of documentations.We now generate our example config through a build-time proc-macro, parsing the comments in
src/core/config/mod.rs, and automatically writes toconduwuit-example.toml. Further technical details about how it works may be documented on the website soon.