guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!
http://guumaster.github.io/hostctl
MIT License
1.05k stars 45 forks source link

Improve documentation guides #44

Open guumaster opened 4 years ago

guumaster commented 4 years ago

In order to have a very thorough documentation, here you have an explanation on how the docs are automatically generated and published, and how you can contribute to improve it.

Where to create/modify guides?

Markdown docs can be found on the Hugo site folder on the docs branch.

The path for the guides is: docs/content/docs/guides, there you can modify or add new content.

Automatic CLI usage docs

On the same branch there is a directory where all content is generated automatically with a cobra feature to inspect and generate markdown. So everything inside docs/content/docs/cli-usage is auto generated and will be overwritten on each run of the workflow.

Don't manually edit content there.

What to add?

How to add content?

How to add asciinema casts

---
title: Some guide with a player
description: A great guide with an asciinema player
+asciinema: true
---

Some content... 

+{{<asciinema key="my_record.cast" >}}

...More content...