The Open Practice Library provides information about practices and ideas that we use here at Red Hat Open Innovation Labs. To learn more about the philosophy behind the library, see about.md.
To add content: fork this repository, add your content, and then send us a pull request.
Content is formatted in Markdown with YAML front matter.
Create a new markdown file in /content/practices. If you have hugo installed, you can run hugo new practices/my_new_practice.md.
Create a new markdown file in /content/waypoints. If you have hugo installed, you can run hugo new waypoints/my_new_waypoint.md.
Create a new markdown file in /content/stages. If you have hugo installed, you can run hugo new stages/my_new_stage.md.
Edit one of the Stage pages.
Content is created in draft status by default. To publish, set draft: false in the front matter or run hugo undraft. For example, typing hugo undraft page/my_new_page.md will publish the corresponding page.
These style guidelines apply to the Markdown files in the /content directory.
- Use hyphens, not underscores, to separate parts of a filename. (The filenames are turned into URLs when the site is built.)
- Where possible, avoid putting HTML in Markdown. Exception: the
<sup>tag and anchors, which we're using for footnotes. - When linking to external sites, place the link into an "external references" section, and use a footnote anchor to point to the link.
- Don't put the document's title into a heading (
# My Title). Instead, just include the title in the document's front matter (title: my title).
Open Practice Library is built with Hugo and the Minimo theme. To run it locally:
- Check out this repo.
- Install Hugo.
- Run
git submodule update --init --recursiveto download the theme. - Navigate to the top level of the repo.
- Run
hugo serverto run the site locally.
Alternately, you can run hugo server -D to preview drafts.
The site is published to GitHub pages using a docs directory on the master branch.
To push changes to GitHub pages:
- Delete the
docsdirectory. (Hugo won't delete old files by default.) - Run
hugo(without any parameters) to rebuild thedocsdirectory. - Add, commit, and push these changes.
- Create a pull request.
- Merge to master, or ask someone else to merge to master.
Once the changes are merged up, the new content will be deployed automatically.