chore(docs): add improvements #191
Merged
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.
Description
Add the following enhancements to docs:
Notes on removals
The autogeneration process works as follows:
typedoc.typedoc-plugin-markdownplugin to instead convert to markdown instead of HTML.docusaurus-plugin-typedocis then used to convert the markdown into Docusaurus friendly markdown.We have little leeway with the theme as these are the only options available to edit the markdown output and UX - typedoc and typedoc-plugin-markdown. As such there are two places we can remove the output, either when the markdown is created or using CSS applied when the docusaurus page is served. Ideally we would do it when the markdown is created however the only way to do this is to create a custom plugin which can hook into the markdown page creation but has limited selection functionality e.g.
Therefore to remove things we would need to follow this kind of pattern
page.contents = page.contents.replace('## Returns', '');which is difficult to deal with and could result in unintended consequences. Therefore I have opted to instead use CSS ID's to hide the content as this is more specific and not reliant on text which may change.Dependencies
Screenshots
Before
After

Before
After
