Skip to content

Commit 2fdf1de

Browse files
committed
Contribution Guide for Atomic Host Documentation
Signed-off-by: Trishna Guha <[email protected]>
1 parent 95a7856 commit 2fdf1de

File tree

5 files changed

+125
-2
lines changed

5 files changed

+125
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# atomic-host-docs
22

3-
This repository includes the ASCIIbinder with documentation for Atomic Host, including both Fedora Atomic Host and CentOS Atomic Host.
3+
This repository includes the [AsciiBinder](http://www.asciibinder.org) with documentation for Atomic Host, including both Fedora Atomic Host and CentOS Atomic Host.
44

5-
Additional information about how to build the documentation and its contents will here once we figure them out.
5+
Additional information about how to build the documentation is here: [Contribution-Guide](https://github.com/projectatomic/atomic-host-docs#contribution-guide).
66

77
## Attic
88

99
The "attic" contains contributed files from other sources such as Red Hat Atomic Host documentation, the ProjectAtomic blog, and other sources. These are awaiting conversion into final documentation form.
1010

11+
## Contribution Guide
12+
13+
Want to hack on Atomic Host Docs? Check the [Contribution-Guide](https://github.com/projectatomic/atomic-host-docs/blob/master/atomic-host-guide/contribution_guide.adoc).
14+
1115
## Copyright and Contributors
1216

1317
This documentation is copyright 2016-2017 Red Hat Inc., and repository contributors. It is licensed Creative Commons Share-Alike 4.0; see included LICENSE file for details.

_topic_map.yml

+7
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ Topics:
4040
File: installing_cockpit
4141
- Name: How to Use
4242
File: using_cockpit
43+
44+
---
45+
Name: Contribute Guide
46+
Dir: atomic-host-guide
47+
Topics:
48+
- Name: How Can I Contribute
49+
File: contribution_guide
+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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].
Loading

setup.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
- name: Setup Development Environment
3+
hosts: localhost
4+
become: yes
5+
become_method: sudo
6+
7+
tasks:
8+
- name: Install the list of required packages
9+
package: name={{ item }} state=installed
10+
with_items:
11+
- gcc
12+
- gcc-c++
13+
- java-1.8.0-openjdk
14+
- java-1.8.0-openjdk-devel
15+
- ruby
16+
- rubygems
17+
- ruby-devel
18+
- redhat-rpm-config
19+
- asciidoc
20+
- asciidoctor
21+
22+
- name: Install AsciiBinder
23+
shell: gem install ascii_binder

0 commit comments

Comments
 (0)