Skip to content

Commit 9703b46

Browse files
committed
Test RTD markup
1 parent fd6a866 commit 9703b46

File tree

4 files changed

+67
-7
lines changed

4 files changed

+67
-7
lines changed

docs/source/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
# import sys
2222
# sys.path.insert(0, os.path.abspath('.'))
2323

24+
import sphinx.environment
25+
from docutils.utils import get_source_line
26+
27+
28+
# Monkey patch sphinx to ignore: WARNING: nonlocal image URI
29+
def _warn_node(self, msg, node, **kwargs):
30+
if not msg.startswith('nonlocal image URI found:'):
31+
self._warnfunc(msg, '%s:%s' % get_source_line(node), **kwargs)
32+
33+
sphinx.environment.BuildEnvironment.warn_node = _warn_node
2434

2535
# -- General configuration ------------------------------------------------
2636

docs/source/index.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,31 @@
22
demosys-py documentation
33
========================
44

5+
demosys-py
6+
==========
7+
8+
A python 3 implementation of a C++ project used to create and
9+
prototype demos (see
10+
`demoscene <https://en.wikipedia.org/wiki/Demoscene>`__) in OpenGL. The
11+
design of this version is heavily inspired by the
12+
`Django <https://www.djangoproject.com/>`__ project.
13+
14+
This is a cross platform project that should work on OS X, Linux and Windows.
15+
16+
+-----------------+-----------------+
17+
| |screenshot1| | |screenshot2| |
18+
+-----------------+-----------------+
19+
20+
This was originally made for for non-interactive real time graphics
21+
combined with music ("real time music videos"). It's made for people who
22+
enjoy playing around with modern OpenGL without having to spend lots of
23+
time creating all the tooling to get things up and running.
524

625

726
.. toctree::
827
:maxdepth: 2
928
:caption: Contents:
1029

11-
intro
1230
quickstart
1331

1432

@@ -19,3 +37,7 @@ Indices and tables
1937
* :ref:`genindex`
2038
* :ref:`modindex`
2139
* :ref:`search`
40+
41+
42+
.. |screenshot1| image:: https://objects.zetta.io:8443/v1/AUTH_06e2dbea5e824620b20b470197323277/contraz.no-static/gfx/productions/SimLife3.png
43+
.. |screenshot2| image:: https://objects.zetta.io:8443/v1/AUTH_06e2dbea5e824620b20b470197323277/contraz.no-static/gfx/productions/SimLife2.png

docs/source/intro.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/source/quickstart.rst

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,37 @@
22
Getting Started
33
===============
44

5-
Quick tutorial
5+
Python 3
6+
^^^^^^^^
7+
8+
Make sure you have Python 3 installed. On Windows and OSX you can simply install
9+
the latest Python 3 by downloading an installer from the official_ Python site.
10+
11+
Note
12+
13+
We recommend Python 3.6 or higher because of general **speed improvements** of the language,
14+
but Python versions down to 3.4 should work.
15+
16+
Most linux distributions already have at least Python 3.4 installed thought `python3`.
17+
See documentation for your distribution on how to install a newer versions.
18+
19+
It is common to have multiple versions of Python installed on all operating systems.
20+
21+
Create a virualenv
22+
^^^^^^^^^^^^^^^^^^
23+
24+
First of all create a directory for your project and naviagate to it using a terminal.
25+
We assume Python 3 here.
26+
27+
OS X / Linux
28+
29+
python3.6 -m pip install virtualenv
30+
python3.6 -m virtualenv env
31+
32+
Windows
33+
34+
python36.exe -m pip install virtualenv
35+
python36.exe -m virtualenv env
36+
37+
38+
.. _official: https://www.python.org/

0 commit comments

Comments
 (0)