This repository was archived by the owner on Dec 8, 2021. It is now read-only.
[WIP] #152: Website for hosted documentation #159
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.
This is just a first crack at a simple site for Polaris. We can fine tune a little bit on how we want to present the help information and add a little bit extra where it's useful.
Two big things I would love to accomplish here is
Once we get those two things out of the way we can really just focus on creating excellent documentation using comment based documentation or about_ files in the main repository and we won't have to worry about keeping the site up-to-date.
Notes on the build process
The site currently has two requirements for help files as markdown:
The type determines where the file will go in the navigation. A type of api gets put into the API Documentation section of the navigation and a type of about gets put into the About Guides section of the navigation.
This looks like a lot but we can achieve all of that for the API documentation using platyPS and the -Metadata parameter like this:
That will auto-generate all of our markdown files for api from comment-based help with the necessary metadata in the header.
For writing about_ files we want to include with the module we can write them following platyPS standards just adding the required metadata fields at the top. i.e.
If we can get that command into our standard build process and we could set up git push to allow pushing back into the gh-pages branch from appveyor. We could do the following steps during an automated release:
Phew... that was a lot... lol. Let me know what you think or if you have a simpler solution or would rather not tackle all of that in one PR.
Related issue #152