Anonymous avatar Anonymous committed c55029c

Changed docs module to use django-shphinxdoc, see #1.

Comments (0)

Files changed (5)

 */dev.db
 */localsettings.py
 */search_index/*
+*/media/css/highlighting/*
 .directory
 

mygameweb/localsettings_template.py

 copy or rename to localsettings.py to edit
 settings for your system
 """
- 
+import os
+
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG
 

mygameweb/readme.txt

 
   python manage.py loaddata fixtures/initial_data.json
   
-  That includes 3 user accounts with profiles, two sites (site with id 2 is localhost),
-  and some flatpages.
+- create code highlighting styles:
 
-  The users' names and passwords are "admin", "staff" and "user".
+  python manage.py generatecss
   
 - to get some more data for testing (needs initial_data):
 

mygameweb/settings.py

     'django.contrib.flatpages',
     'tagging',
     'haystack',
+    'sphinxdoc',
     'mygameweb.news',
     'mygameweb.projects',
     'mygameweb.comments',

mygameweb/urls.py

     url("^(?P<tiny_bit>[spurn])/(?P<obj_id>.+?)/$", 
         "utils.redirects.generic_tiny_url", name="tiny_url"), 
                 
-    (r'docs/$', 'django.views.generic.simple.direct_to_template',
-           {
-            
-            "template": 'docs/index.html',
-            
-          }),
-    (r'^docs/(?P<name>.+?).html$', 
-        lambda r,name:direct_to_template(r, 'docs/%s.html'% name)),
+    (r'^docs/', include('sphinxdoc.urls')),
     
     # some stats
      url(r'^stats/$', 'django.views.generic.simple.direct_to_template',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.