.. Sample Website documentation master file, created by sphinx-quickstart on Fri Mar 18 12:46:42 2016. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Sample Website! ========================================== Chengping Chai, Penn State, prepared for the Penn State Geoscience Computer Users Group. Let me show you how to build a website without knowing html. You don't even need to know Python. You can add text to your website just by typing. You may highlight your text in **bold** or in *italics*. Here is a list: - Item 1 - Item 2 - Item 3 Enumerated List: #. Item 1 #. Item 2 #. Item 3 This is a heading ============================== Another heading ------------------------------ One more heading ++++++++++++++++++++++++++++++ Adding a link is easy. `Google `_ Table is supported. ========= ========== ========= Header 1 Header 2 Header 3 ========= ========== ========= Row 1 1 A Row 2 2 B ========= ========== ========= You can also show an equation in a line :math:`a^2 + b^2 = c^2` and by itself. .. math:: (a + b)^2 = a^2 + 2ab + b^2 Of course, you can add an image. .. image:: nittanyLion.jpg You can resize the image and add a link. .. image:: nittanyLion.jpg :scale: 50% :target: http://www.psu.edu Highlighting your code is a simple task. .. code-block:: python x = 1 if x == 1: print "Hello, world." .. code-block:: c #include int main( ) { printf("Hello World!\n"); } .. code-block:: fortran ! Hello World in Fortran 90 and 95 PROGRAM HelloWorld WRITE(*,*) "Hello World!" END PROGRAM You can also provide a link to download a file. :download:`Click to download the image ` To add a new page, you just create a new file (newpage.rst) and add the filename (with path if in a different folder) beneath the toctree with indent. In the file, I have the following lines. .. code:: .. _newpage: New Page ============================== This is a new page. You create a link to the new page. :ref:`newpage` Contents: .. toctree:: :maxdepth: 2 newpage.rst Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`