Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinkyfingers <iain@browndouglas.plus.com>2013-11-25 11:25:00 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-11-26 12:47:30 (GMT)
commit734ec2f22474624b1501ae6b4c0e0324cc6cfeec (patch)
tree496f220dde6b674663a4d60776d19f8cd620c057
parent387cf038702f0753dc646ecd7b6d08eea4620271 (diff)
Writing in reStructuredText
Signed-off-by: Iain Brown Douglas <iain@browndouglas.plus.com>
-rw-r--r--source/restructuredtext.rst187
1 files changed, 187 insertions, 0 deletions
diff --git a/source/restructuredtext.rst b/source/restructuredtext.rst
new file mode 100644
index 0000000..ed17efb
--- /dev/null
+++ b/source/restructuredtext.rst
@@ -0,0 +1,187 @@
+===========================
+Writing in reStructuredText
+===========================
+
+This page is a short primer and cheat sheet for the markup language we are using in Help. The rst format is easy to create and we are using a part of it only:
+
+.. _my-reference-label:
+
+Titles
+::::::
+
+::
+
+ ====================
+ This is a main title
+ ====================
+
+::
+
+ This is a secondary title
+ -------------------------
+
+::
+
+ This is a 3rd level title
+ :::::::::::::::::::::::::
+
+Links
+:::::
+
+Links like http://activities.sugarlabs.org are automatically created.
+
+To create links where the text displayed in the page is different to the link you should do:
+
+You will find `ASLO <http://activities.sugarlabs.org>`_ here.
+
+Program writing software like Python_.
+
+.. _Python: http://www.python.org/
+
+::
+
+ Links like http://activities.sugarlabs.org are automatically created.
+
+ To create links where the text displayed in the page is different to the link you should do:
+
+ You will find `ASLO <http://activities.sugarlabs.org>`_ here.
+
+ Program writing software like Python_.
+
+ .. _Python: http://www.python.org/
+
+Links within Help
+:::::::::::::::::
+
+This link, :ref:`my-reference-label`, links to the top paragraph of this document.
+
+ To see how this works, ``.. _my-reference-label:`` appears on line 7 of restructuredtext.rst.
+
+Secondly, this page contains more about terms and words used in sugar. :doc:`/glossary`
+
+::
+
+ This link, :ref:`my-reference-label`, links to the top paragraph of this document.
+
+ To see how this works, ``.. _my-reference-label:`` appears on line 7 of restructuredtext.rst.
+
+ Secondly, this page contains more about terms and words used in sugar. :doc:`/glossary`
+
+
+Lists
+:::::
+
+Lists are simple
+
+* First item
+* Second item
+* Last item
+
+or numbered:
+
+1. One item
+2. Another item
+3. The last one
+
+::
+
+ Lists are simple
+
+ * First item
+ * Second item
+ * Last item
+
+ or numbered:
+
+ 1. One item
+ 2. Another item
+ 3. The last one
+
+Simple table
+::::::::::::
+
+===== ===== ======
+ Inputs Output
+------------ ------
+ A B A or B
+===== ===== ======
+False False False
+True False True
+False True True
+True True True
+===== ===== ======
+
+::
+
+ ===== ===== ======
+ Inputs Output
+ ------------ ------
+ A B A or B
+ ===== ===== ======
+ False False False
+ True False True
+ False True True
+ True True True
+ ===== ===== ======
+
+Images
+::::::
+
+An image can be included like this:
+
+.. image :: ../images/Help.png
+
+::
+
+ .. image :: ../images/Help.png
+
+Icons and small images
+::::::::::::::::::::::
+
+|Neighborhood_key| This is the sharing option.
+
+.. |Neighborhood_key| image:: ../images/Neighborhood_key_sml.png
+
+|Home_key_f3_small| This is the Private option.
+
+.. |Home_key_f3_small| image:: ../images/Home_key_f3_small.png
+
+::
+
+ |Neighborhood_key| This is the sharing option.
+
+ .. |Neighborhood_key| image:: ../images/Neighborhood_key_sml.png
+
+ |Home_key_f3_small| This is the Private option.
+
+ .. |Home_key_f3_small| image:: ../images/Home_key_f3_small.png
+
+Adding a note
+:::::::::::::
+
+.. Note::
+
+ When you are required to place the first readable character at point 3 or 4 in the line, it is recommended to check if you are required to insert spaces or Tab.
+
+And also
+
+.. seealso::
+
+ Notice that first readable character of this note is under the "s", three spaces preceed it.
+
+::
+
+ .. Note::
+
+ When you are required to place the first readable character at point 3 or 4 in the line, it is recommended to check if you are required to insert spaces or Tab.
+
+ And also
+
+ .. seealso::
+
+ Notice that first readable character of this note is under the "s", three spaces preceed it.
+
+
+|more| There are links to futher reading at the foot of the page :doc:`/how_to_help`
+
+.. |more| image:: ../images/more.png