Browse Source

Docs tweaks

Rafał Pitoń 11 years ago
parent
commit
c9b31e0cb9
2 changed files with 7 additions and 2 deletions
  1. 5 0
      docs/conf.py
  2. 2 2
      docs/developers/admin_actions.rst

+ 5 - 0
docs/conf.py

@@ -15,6 +15,11 @@
 import sys
 import os
 
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
+if on_rtd:
+    html_style = '/default.css'
+
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.

+ 2 - 2
docs/developers/admin_actions.rst

@@ -51,8 +51,8 @@ Registers new namespace in admin links hierarchy.
 Registers urlpatterns under defined namespace. Expects first argument to be name of namespace that defined links belong to (eg. ``users:accounts``). Every next argument is expected to be valid Django link created with ``url`` function from :py:mod:`django.conf.urls` module.
 
 
-..note::
-  ''misago:admin'' prefix of namespaces is implicit. Do not prefix namespaces passed as arguments to those functions with it.
+.. note::
+   ''misago:admin'' prefix of namespaces is implicit. Do not prefix namespaces passed as arguments to those functions with it.
 
 
 Registering urls in navigation