|
| 1 | +[contribution-guide] |
| 2 | += {product-title} Documentation Contribution Guide |
| 3 | +{product-author} |
| 4 | +{product-version} |
| 5 | +:data-uri: |
| 6 | +:icons: |
| 7 | +:imagesdir: {images} |
| 8 | + |
| 9 | +[.lead] |
| 10 | +link:http://www.projectatomic.io[Project Atomic] aims to build a welcoming and diverse community. |
| 11 | +{product-title} Documentation focuses on convering Docs required for {product-title} introduction |
| 12 | +to how to compose, manage and deploy {product-title} and its various application. |
| 13 | + |
| 14 | + |
| 15 | +=== Requirements |
| 16 | + |
| 17 | +* link:http://asciidoctor.org/docs/what-is-asciidoc/#what-is-asciidoc[AsciiDoc] markup language to write Docs. |
| 18 | +* link:http://asciidoctor.org[Asciidoctor] that acts as text processor to convert AsciiDoc content to HTML5, DocBook and others. |
| 19 | +* link:http://www.asciibinder.org[AsciiBinder] that helps to build, maintain documentation in easier way. |
| 20 | + |
| 21 | + |
| 22 | +=== Set up Development Environment |
| 23 | + |
| 24 | +.... |
| 25 | +$ sudo dnf install ansible |
| 26 | +$ git clone https://github.com/projectatomic/atomic-host-docs.git |
| 27 | +$ git checkout -b <branch-name> |
| 28 | +$ cd atomic-host-docs |
| 29 | +$ ansible-playbook setup.yml --ask-sudo-pass |
| 30 | +.... |
| 31 | + |
| 32 | + |
| 33 | +=== How to Write Doc |
| 34 | + |
| 35 | +{product-title} Documentation uses AsciiDoc markup language. You can have a look at the |
| 36 | +link:http://asciidoctor.org/docs/asciidoc-syntax-quick-reference[Reference] for AsciiDoc Syntax. |
| 37 | + |
| 38 | +.... |
| 39 | +$ mkdir atomic-host-guide/container && touch atomic-host-guide/container/overview.adoc |
| 40 | +.... |
| 41 | + |
| 42 | +.atomic-host-guide/container/overview.adoc |
| 43 | +---- |
| 44 | +[[container-overview]] |
| 45 | += Container Overview |
| 46 | +{product-author} |
| 47 | +{product-version} |
| 48 | +:data-uri: |
| 49 | +:icons: |
| 50 | +
|
| 51 | +Container contains applications in a way to keep itself isolated from the host system that it runs on and |
| 52 | +container allows developer to package an application with all of it parts, such as libraries and other packages |
| 53 | +it needs to run and ship it all as one package. |
| 54 | +I love Containers!!! |
| 55 | +---- |
| 56 | + |
| 57 | +After the Doc is ready, we need to make entry in `_topic_map.yml` file. |
| 58 | +This file tells AsciiBinder which *_topic_* groups and *_topics_* to generate. |
| 59 | + |
| 60 | +._topic_map.yml |
| 61 | +---- |
| 62 | +--- |
| 63 | +Name: Tools |
| 64 | +Dir: atomic-host-guide |
| 65 | +Topics: |
| 66 | + - Name: Containers |
| 67 | + Dir: container |
| 68 | + Topics: |
| 69 | + - Name: Overview |
| 70 | + File: overview |
| 71 | +---- |
| 72 | + |
| 73 | +Now go to the root directory of the repo. The following command will build the Documentation. |
| 74 | +.... |
| 75 | +$ asciibinder |
| 76 | +.... |
| 77 | + |
| 78 | + |
| 79 | +=== Verify |
| 80 | + |
| 81 | +A new directory will be created named `_preview`. You will be able to browse Documentation from there that you just build. |
| 82 | + |
| 83 | +This is how it will look like after the Doc is build: |
| 84 | + |
| 85 | +image::contribution-guide-demo.png[alt="Sunset", width="900", height="500"] |
| 86 | +=== Join the Community |
| 87 | + |
| 88 | +If you are interested joining the Project Atomic community, please refer to |
| 89 | +link:http://www.projectatomic.io/community[Project-Atomic-Community]. |
0 commit comments