Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create separate documentation site #74

Closed
garethr opened this issue Aug 17, 2019 · 4 comments · Fixed by #263
Closed

Create separate documentation site #74

garethr opened this issue Aug 17, 2019 · 4 comments · Fixed by #263
Labels
enhancement New feature or request

Comments

@garethr
Copy link
Contributor

garethr commented Aug 17, 2019

As we both add more features, more examples and more integrations (Helm, GitHub Actions, etc.) the README won't be the best place to put all the documentation.

It would be good to create a separate docs site with multiple pages.

I've had good luck with MkDocs (https://www.mkdocs.org/) before, for instance with
https://github.com/instrumenta/kubeval. This just involves a simple config file and a directory of markdown files managed in the same repo.

@garethr garethr added the enhancement New feature or request label Aug 17, 2019
@jpreese
Copy link
Member

jpreese commented Aug 17, 2019

I would love to try Hugo with the Learn theme (https://themes.gohugo.io/hugo-theme-learn/) and Netlify (https://www.netlify.com/)

The Netlify integration actually deploys your PR to a staging environment (e.g. PR#-conftest.staging.url.com) so you can see what it will do without having to do. Making it easier for contributors who just want to directly edit the markdown from GitHub as well as reviewers of PRs.

You can see a working example of this from the Athens repository (gomods/athens#1340)

@kmcquade
Copy link

kmcquade commented Jan 5, 2020

+1 on Hugo and Netlify.

I'd chip in as well.

@Blokje5
Copy link
Collaborator

Blokje5 commented Feb 26, 2020

@garethr @jpreese @boranx I see more need for this at the moment. A lot of questions on the OPA Slack show that we could really improve our documentation.

My proposal is the following:

  • We start with a docs folder with seperate documentation (I already did this for the plugin feature). This folder contains markdown files for each relevant topic.
  • We create a certain folder structure in the docs folder, e.g. something like this:
  /commands
  /rego
  /examples
  /plugin
  /...

This means we already have some structured documentation.

  • After some initial docs have been written we can look at the creation of a new documentation site.

@garethr
Copy link
Contributor Author

garethr commented Feb 29, 2020

I grabbed some time and converted the existing README over into separate files in the docs folder, and I've configured Mkdocs to generate a site. I can get this up on conftest.dev once #263 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants