-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDOCS_README.txt
More file actions
170 lines (114 loc) · 4.43 KB
/
DOCS_README.txt
File metadata and controls
170 lines (114 loc) · 4.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
+=============================================+
--== [ Documentation Readme: ] ==--
This readme contains some important info
for writing and correcting cursepy docs!
--== [ Goals: ] ==--
We have the following goals for the docs:
* Ensure spelling and grammatical correctness
* Ensure text is understandable
(As long as the reader has a simple understanding of what I am trying to say, then i’m calling that a success)
* Ensure text is free of excessive rambling
* Ensure text does not get repetitive or ‘copy-paste’ like
(I know, this is a technical documentation and it is not supposed to be interesting)
Please keep these goals in mind!
--== [ Doc Status: ] ==--
Here you will find the status of documentation.
We will list each file that needs to be checked.
Please refrain from editing files that are sill being written!
Ready for checking:
basic/collection.rst
basic/into.rst
basic/index.rst
basic/curse_inst.rst
advn/collection.rst
advn/hand.rst
advn/index.rst
advn/into.rst
advn/proto.rst
index.rst
install.rst
Being written:
basic/wrap.rst
Completed:
--== [ Using Git: ] ==--
We use git for version control.
Here are some common operations you will need to know:
Commit - Save all changes you made locally
Push - Push all local changes to remote
Pull - 'Update' your files with changes from remote
If you want a primer on git, have a look here:
https://git-scm.com/docs/gittutorial
--== [ Doc Writing Introduction: ] ==--
The cursepy docs are separated into 'pages',
much like a website. Each page
contains information on a certain topic.
This is to ensure the documentation
remains maintainable,
as putting everything in one file
would make maintainability difficult.
The docs are built using a service called Sphinx
that will render the content and link them together.
You can read more about sphinx here:
https://www.sphinx-doc.org/en/master/
--== [ Locating the Docs: ] ==--
The docs can be found here:
docs/source/
Any file with an extension with '.rst' are
docs files that should be checked!
I Have a list at the top of this file
for doc status.
You can ignore 'conf.py'.
--== [ Doc Syntax: ] ==--
Content in these pages are written in a
markup language called ReStructuredText.
ReconstructedText (RT) should look like normal text,
but with some minor syntax changes.
For example, here is text rendered as a header:
Header
======
Normal text
The 'Header' text will be rendered in large and bold, acting as a header.
Any text with '=' below it will act as a header.
Any text with '-' beneath it will act as a sub-header.
You might also see text like this:
* Value 1
* Value 2
This will render the content as a list.
You will definitely see something like this:
.. [SOME NAME]::
Content!
The ‘.. [SOME NAME]::’ is what's called a directive.
This tells the computer to format the indented text in a special way.
For example, text might be rendered in red to act as a warning.
In my docs, I use the ‘Code-Block’ directive a lot.
This essentially tells the computer to do some syntax highlighting,
and separate it from the rest of the text. Here is an example of the ‘Code-Block’ directive:
.. Code-Block:: python
# We are python code!
# We are probably going to be highlighted in some special way!
print(“Rocking in the CyberSpace!”)
You do not have to worry about content in these code block sections,
as they are code examples. The only thing you should look at are the comments,
which are preceded by a hashtag(#).
Any other directives like 'note' and 'warning' should be checked!
Don’t worry about syntax errors or indentation, I can correct that at a later date.
Please have a look at the primer tutorial if you want a deeper understanding of RT:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
--== [ Manually Building Docs: ] ==--
Your IDE should automatically build the docs for
you in the preview page.
If you want to build the docs yourself,
then follow these steps:
1. Open a command prompt in the root directory
2. Navigate to 'docs/' by using this command:
cd docs/
3. Run this command to build:
make html
After the docs are built, navigate to 'docs/build/html'
and you will find the HTML pages for each page.
You can open the HTML files with your favorite web browser.
--== [ Conclusion: ] ==--
Thank you for helping out,
I really do appreciate it!
If you have any questions,
please don't hesitated to contact me.