Polaris icon indicating copy to clipboard operation
Polaris copied to clipboard

Website for hosted documentation

Open Tiberriver256 opened this issue 6 years ago • 8 comments

If we create a branch called gh-pages index.html from that branch will be served at http://PowerShell.github.io/Polaris which would be sweet

  • [x] Intro to Polaris / what is Polaris?
  • [x] Getting started guide
  • [ ] Full guide on Routing (similar to here)
  • [ ] Simple route tester similar to here for help on making the routes and seeing what parameters come through
  • [x] Leverage as much of of the PowerShell based documentation as possible through automation. Markdown to HTML? Should we write about_.help.txt files for everything above except for the route tester and auto-convert them to markdown / HTML?
  • [ ] Docs should be automatically updated as part of the release cycle

I'm thinking that rather than even worry about converting from markdown to HTML we let Github do that for us with the Jekyll framework. I'll see if I can work up a sample site in my repo for you to look at.

Created from #135

Tiberriver256 avatar Nov 02 '18 02:11 Tiberriver256

Hey @tylerl0706,

I got something started on this. We would have to create a gh-pages branch before I can start a WIP Pull Request but you can check out what I have to start here:

https://tiberriver256.github.io/Polaris

The theme I borrowed almost entirely from Liquid Templates so we might want to change things up a bit but I thought it was a nice layout to start from. The API documentation is just markdown converted by Github Pages using Jekyll templating and was generated using the following PlatyPS command:

Get-Command -Module Polaris | foreach { 
New-MarkdownHelp -Command $_ -OnlineVersionUrl "http://tiberriver256.github.io/Polaris/docs/api/$($_.Name).html" -Metadata @{layout="default";title=$_.Name;type="api"
} -OutputFolder .\docs\api  }

The source for the entire site is at: https://github.com/tiberriver256/polaris/tree/gh-pages

Tiberriver256 avatar Nov 02 '18 17:11 Tiberriver256

This. is. soooooooo slick. I really like it! I so long as we can script updating the branch from when we update help, I'm game!

TylerLeonhardt avatar Nov 06 '18 06:11 TylerLeonhardt

send that PR dude! :smile:

TylerLeonhardt avatar Nov 10 '18 05:11 TylerLeonhardt

I don't have rights to manage branches on the main repo here. I think you'll have to create the gh-pages branch and then I can get the PR started.

Tiberriver256 avatar Nov 11 '18 01:11 Tiberriver256

https://github.com/PowerShell/Polaris/tree/gh-pages

TylerLeonhardt avatar Nov 11 '18 01:11 TylerLeonhardt

Checked off one item on the list and the site is live! https://powershell.github.io/Polaris/

Tiberriver256 avatar Nov 23 '18 02:11 Tiberriver256

I'm thinking I could use an Azure Container Instance to host a Polaris server example 🤔

TylerLeonhardt avatar Nov 23 '18 09:11 TylerLeonhardt

That would be cool!

Tiberriver256 avatar Nov 23 '18 14:11 Tiberriver256