Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Website for hosted documentation #152

Open
3 of 6 tasks
Tiberriver256 opened this issue Nov 2, 2018 · 8 comments
Open
3 of 6 tasks

Website for hosted documentation #152

Tiberriver256 opened this issue Nov 2, 2018 · 8 comments

Comments

@Tiberriver256
Copy link
Contributor

Tiberriver256 commented Nov 2, 2018

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

  • Intro to Polaris / what is Polaris?
  • 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
  • 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
Copy link
Contributor Author

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

@TylerLeonhardt
Copy link
Member

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
Copy link
Member

send that PR dude! 😄

@Tiberriver256
Copy link
Contributor Author

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.

@TylerLeonhardt
Copy link
Member

Tiberriver256 added a commit that referenced this issue Nov 23, 2018
* First go at Github Pages for Polaris!

🎉🎉🎉🎉

* Updated to the latest from Tyler
@Tiberriver256
Copy link
Contributor Author

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

@TylerLeonhardt
Copy link
Member

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

@Tiberriver256
Copy link
Contributor Author

That would be cool!

@Tiberriver256 Tiberriver256 mentioned this issue Nov 24, 2018
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants