From 5d0f9059616247a76d878480ec8a60dbe60489b8 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Tue, 11 Jun 2013 18:04:35 +0300 Subject: [PATCH 01/10] fixes pep8 and pylint errors and rename mitx->edx --- docs/source/conf.py | 55 ++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 3b1e9dc5b9..0efe03568c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,23 +1,26 @@ # -*- coding: utf-8 -*- -# -# MITx documentation build configuration file, created by -# sphinx-quickstart on Fri Nov 2 15:43:00 2012. -# -# This file is execfile()d with the current directory set to its containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. +""" EdX documentation build configuration file, created by + sphinx-quickstart on Fri Nov 2 15:43:00 2012. -import sys, os + This file is execfile()d with the current directory set to its containing dir. + + Note that not all possible configuration values are present in this + autogenerated file. + + All configuration values have a default; values that are commented out + serve to show the default.""" + +import sys +import os # 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. sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('../..')) # mitx folder +sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'calc')) # calc module +sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'chem')) # calc module +sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'sandbox-packages')) # calc module sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'capa')) # capa module sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'xmodule')) # xmodule sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'lms', 'djangoapps')) # lms djangoapps @@ -36,7 +39,9 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'lms.envs.dev' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', + 'sphinx.ext.mathjax', 'sphinx.ext.viewcode'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -51,17 +56,17 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'MITx' -copyright = u'2012, MITx team' +project = u'EdX Dev Data' +copyright = u'2012-13, EdX team' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '1.0' +version = '0.2' # The full version, including alpha/beta/rc tags. -release = '1.0' +release = '0.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -75,7 +80,7 @@ release = '1.0' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -exclude_patterns = [] +exclude_patterns = ['build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None @@ -175,7 +180,7 @@ html_static_path = ['_static'] #html_file_suffix = None # Output file base name for HTML help builder. -htmlhelp_basename = 'MITxdoc' +htmlhelp_basename = 'edXDocs' # -- Options for LaTeX output -------------------------------------------------- @@ -194,8 +199,8 @@ latex_elements = { # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'MITx.tex', u'MITx Documentation', - u'MITx team', 'manual'), + ('index', 'edXDocs.tex', u'EdX Dev Data Documentation', + u'EdX Team', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -224,8 +229,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'mitx', u'MITx Documentation', - [u'MITx team'], 1) + ('index', 'edxdocs', u'EdX Dev Data Documentation', + [u'EdX Team'], 1) ] # If true, show URL addresses after external links. @@ -238,8 +243,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'MITx', u'MITx Documentation', - u'MITx team', 'MITx', 'One line description of project.', + ('index', 'EdXDocs', u'EdX Dev Data Documentation', + u'EdX Team', 'EdXDocs', 'One line description of project.', 'Miscellaneous'), ] From e7f1baad620e773f407a13610e44256626682383 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Wed, 12 Jun 2013 14:09:06 +0300 Subject: [PATCH 02/10] Fixes broken imports in checker.py --- common/lib/capa/capa/checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/capa/capa/checker.py b/common/lib/capa/capa/checker.py index 15358aac9e..fe906efc79 100755 --- a/common/lib/capa/capa/checker.py +++ b/common/lib/capa/capa/checker.py @@ -12,8 +12,8 @@ from path import path from cStringIO import StringIO from collections import defaultdict -from .calc import UndefinedVariable -from .capa_problem import LoncapaProblem +from calc import UndefinedVariable +from capa.capa_problem import LoncapaProblem from mako.lookup import TemplateLookup logging.basicConfig(format="%(levelname)s %(message)s") From 37cad5dc0ca10e1fc5e5ce78fbabbdcb66432b19 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Wed, 12 Jun 2013 14:49:01 +0300 Subject: [PATCH 03/10] fixes launcy not working with Dir.chdir --- rakefiles/docs.rake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rakefiles/docs.rake b/rakefiles/docs.rake index f10fc80d59..2247b686fa 100644 --- a/rakefiles/docs.rake +++ b/rakefiles/docs.rake @@ -22,9 +22,7 @@ task :showdocs, [:options] do |t, args| path = "docs" end - Dir.chdir("#{path}/build/html") do - Launchy.open('index.html') - end + Launchy.open("#{path}/build/html/index.html") end desc "Build docs and show them in browser" From f152668e124f40981331f451cf0374ae5fdbdc75 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Thu, 13 Jun 2013 12:57:31 +0300 Subject: [PATCH 04/10] Fixes bugs in documentation and improves it. --- docs/source/calc.rst | 7 +++ docs/source/capa.rst | 8 --- docs/source/chem.rst | 10 ++-- docs/source/cms.rst | 83 -------------------------------- docs/source/common-lib.rst | 7 ++- docs/source/conf.py | 13 +---- docs/source/index.rst | 6 +-- docs/source/overview.rst | 19 ++------ docs/source/sandbox-packages.rst | 11 +++++ docs/source/symmath.rst | 31 ++++++++++++ 10 files changed, 69 insertions(+), 126 deletions(-) create mode 100644 docs/source/calc.rst create mode 100644 docs/source/sandbox-packages.rst create mode 100644 docs/source/symmath.rst diff --git a/docs/source/calc.rst b/docs/source/calc.rst new file mode 100644 index 0000000000..659ebc11d7 --- /dev/null +++ b/docs/source/calc.rst @@ -0,0 +1,7 @@ +******************************************* +Calc +******************************************* + +.. automodule:: calc + :members: + :show-inheritance: diff --git a/docs/source/capa.rst b/docs/source/capa.rst index 345855af5e..be828ba33a 100644 --- a/docs/source/capa.rst +++ b/docs/source/capa.rst @@ -8,14 +8,6 @@ Contents: .. toctree:: :maxdepth: 2 - chem.rst - -Calc -==== - -.. automodule:: capa.calc - :members: - :show-inheritance: Capa_problem ============ diff --git a/docs/source/chem.rst b/docs/source/chem.rst index 26e01a3238..025c436d37 100644 --- a/docs/source/chem.rst +++ b/docs/source/chem.rst @@ -1,5 +1,5 @@ ******************************************* -Chem module +Chemistry modules ******************************************* .. module:: chem @@ -7,7 +7,7 @@ Chem module Miller ====== -.. automodule:: capa.chem.miller +.. automodule:: chem.miller :members: :show-inheritance: @@ -47,14 +47,14 @@ Documentation from **crystallography.js**:: Chemcalc ======== -.. automodule:: capa.chem.chemcalc +.. automodule:: chem.chemcalc :members: :show-inheritance: Chemtools ========= -.. automodule:: capa.chem.chemtools +.. automodule:: chem.chemtools :members: :show-inheritance: @@ -62,7 +62,7 @@ Chemtools Tests ===== -.. automodule:: capa.chem.tests +.. automodule:: chem.tests :members: :show-inheritance: diff --git a/docs/source/cms.rst b/docs/source/cms.rst index 02dcaccb5a..11fa243f90 100644 --- a/docs/source/cms.rst +++ b/docs/source/cms.rst @@ -4,86 +4,3 @@ CMS module .. module:: cms -Auth -==== - -.. automodule:: auth - :members: - :show-inheritance: - -Authz ------ - -.. automodule:: auth.authz - :members: - :show-inheritance: - -Content store -============= - -.. .. automodule:: contentstore -.. :members: -.. :show-inheritance: - -.. Utils -.. ----- - -.. .. automodule:: contentstore.untils -.. :members: -.. :show-inheritance: - -.. Views -.. ----- - -.. .. automodule:: contentstore.views -.. :members: -.. :show-inheritance: - -.. Management -.. ---------- - -.. .. automodule:: contentstore.management -.. :members: -.. :show-inheritance: - -.. Tests -.. ----- - -.. .. automodule:: contentstore.tests -.. :members: -.. :show-inheritance: - -Github sync -=========== - -.. automodule:: github_sync - :members: - :show-inheritance: - -Exceptions ----------- - -.. automodule:: github_sync.exceptions - :members: - :show-inheritance: - -Views ------ - -.. automodule:: github_sync.views - :members: - :show-inheritance: - -Management ----------- - -.. automodule:: github_sync.management - :members: - :show-inheritance: - -Tests ------ - -.. .. automodule:: github_sync.tests -.. :members: -.. :show-inheritance: \ No newline at end of file diff --git a/docs/source/common-lib.rst b/docs/source/common-lib.rst index 4fa5eaeb0a..2079ae7a23 100644 --- a/docs/source/common-lib.rst +++ b/docs/source/common-lib.rst @@ -6,4 +6,9 @@ Contents: :maxdepth: 2 xmodule.rst - capa.rst \ No newline at end of file + capa.rst + chem.rst + sandbox-packages.rst + symmath.rst + calc.rst + diff --git a/docs/source/conf.py b/docs/source/conf.py index 0efe03568c..8c49dec851 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,20 +16,11 @@ import os # 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. -sys.path.insert(0, os.path.abspath('.')) +# sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('../..')) # mitx folder -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'calc')) # calc module -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'chem')) # calc module -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'sandbox-packages')) # calc module -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'capa')) # capa module -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'lib', 'xmodule')) # xmodule -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'lms', 'djangoapps')) # lms djangoapps -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'cms', 'djangoapps')) # cms djangoapps -sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'common', 'djangoapps')) # common djangoapps # django configuration - careful here -import os -os.environ['DJANGO_SETTINGS_MODULE'] = 'lms.envs.dev' +os.environ['DJANGO_SETTINGS_MODULE'] = 'lms.envs.test' # -- General configuration ----------------------------------------------------- diff --git a/docs/source/index.rst b/docs/source/index.rst index eceb5e23e8..780bc55049 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,10 +1,10 @@ -.. MITx documentation master file, created by +.. EdX Dev documentation master file, created by sphinx-quickstart on Fri Nov 2 15:43:00 2012. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -Welcome to MITx's documentation! -================================ +Welcome to EdX's Dev documentation! +=================================== Contents: diff --git a/docs/source/overview.rst b/docs/source/overview.rst index 007c7582ad..a6d71cbd88 100644 --- a/docs/source/overview.rst +++ b/docs/source/overview.rst @@ -1,20 +1,9 @@ ******************************************* -What the pieces are? +Overview ******************************************* -What -==== -... +This is EdX Dev documentation, mainly extracted from docstrings. +Autogenerated by Sphinx from python code. +Soon support for JS will be impemented. -How -=== - -... - - -Who -=== - - -... \ No newline at end of file diff --git a/docs/source/sandbox-packages.rst b/docs/source/sandbox-packages.rst new file mode 100644 index 0000000000..f63c99c6aa --- /dev/null +++ b/docs/source/sandbox-packages.rst @@ -0,0 +1,11 @@ +******************************************* +Sandbox-packages +******************************************* +.. module:: sandbox-packages + +Loncapa +======= + +.. automodule:: loncapa.loncapa_check + :members: + :show-inheritance: \ No newline at end of file diff --git a/docs/source/symmath.rst b/docs/source/symmath.rst new file mode 100644 index 0000000000..7664e8ac6e --- /dev/null +++ b/docs/source/symmath.rst @@ -0,0 +1,31 @@ +******************************************* +Symmath +******************************************* + +.. module:: symmath + + +Formula +======= + +.. automodule:: symmath.formula + :members: + :show-inheritance: + +Symmath check +============= + +.. automodule:: symmath.symmath_check + :members: + :show-inheritance: + +Symmath tests +============= + +.. automodule:: symmath.test_formula + :members: + :show-inheritance: + +.. automodule:: symmath.test_symmath_check + :members: + :show-inheritance: \ No newline at end of file From a3a2412c8818009f1c009150d924b95ba71bdb2e Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Thu, 13 Jun 2013 13:13:26 +0300 Subject: [PATCH 05/10] fixes pep8 and pylint errors --- docs/source/conf.py | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 8c49dec851..2c398c1b9a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +#pylint: disable=C0103 +#pylint: disable=W0622 +#pylint: disable=W0212 +#pylint: disable=W0613 """ EdX documentation build configuration file, created by sphinx-quickstart on Fri Nov 2 15:43:00 2012. @@ -30,9 +34,9 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'lms.envs.test' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', - 'sphinx.ext.mathjax', 'sphinx.ext.viewcode'] +extensions = [ + 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', + 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -177,21 +181,21 @@ htmlhelp_basename = 'edXDocs' # -- Options for LaTeX output -------------------------------------------------- latex_elements = { -# The paper size ('letterpaper' or 'a4paper'). -#'papersize': 'letterpaper', + # The paper size ('letterpaper' or 'a4paper'). + #'papersize': 'letterpaper', -# The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', + # The font size ('10pt', '11pt' or '12pt'). + #'pointsize': '10pt', -# Additional stuff for the LaTeX preamble. -#'preamble': '', + # Additional stuff for the LaTeX preamble. + #'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'edXDocs.tex', u'EdX Dev Data Documentation', - u'EdX Team', 'manual'), + ('index', 'edXDocs.tex', u'EdX Dev Data Documentation', + u'EdX Team', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -234,9 +238,9 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'EdXDocs', u'EdX Dev Data Documentation', - u'EdX Team', 'EdXDocs', 'One line description of project.', - 'Miscellaneous'), + ('index', 'EdXDocs', u'EdX Dev Data Documentation', + u'EdX Team', 'EdXDocs', 'One line description of project.', + 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. @@ -261,8 +265,12 @@ from django.utils.encoding import force_unicode def process_docstring(app, what, name, obj, options, lines): + """Autodoc django models""" + # This causes import errors if left outside the function from django.db import models + + # If you want extract docs from django forms: # from django import forms # from django.forms.models import BaseInlineFormSet @@ -322,5 +330,6 @@ def process_docstring(app, what, name, obj, options, lines): def setup(app): - # Register the docstring processor with sphinx + """Setup docsting processors""" + #Register the docstring processor with sphinx app.connect('autodoc-process-docstring', process_docstring) From 1da7bcf8b705bef31bd486b8d6d49fc37f036fe0 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Thu, 13 Jun 2013 19:12:46 +0300 Subject: [PATCH 06/10] Fixes bugs in documentation (rst format) --- .../conditional_module/conditional_module.rst | 2 +- .../drag_and_drop/drag_and_drop_input.rst | 2 +- .../graphical_slider_tool/graphical_slider_tool.rst | 2 +- doc/public/course_data_formats/symbolic_response.rst | 6 +++--- doc/public/index.rst | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/public/course_data_formats/conditional_module/conditional_module.rst b/doc/public/course_data_formats/conditional_module/conditional_module.rst index 82c555d3e7..8f7ba17ffc 100644 --- a/doc/public/course_data_formats/conditional_module/conditional_module.rst +++ b/doc/public/course_data_formats/conditional_module/conditional_module.rst @@ -53,7 +53,7 @@ Examples of conditional depends on poll Examples of conditional depends on poll (use tag) -------------------------------------------- +-------------------------------------------------------- .. code-block:: xml diff --git a/doc/public/course_data_formats/drag_and_drop/drag_and_drop_input.rst b/doc/public/course_data_formats/drag_and_drop/drag_and_drop_input.rst index 4927deeec6..a5efd866b6 100644 --- a/doc/public/course_data_formats/drag_and_drop/drag_and_drop_input.rst +++ b/doc/public/course_data_formats/drag_and_drop/drag_and_drop_input.rst @@ -420,6 +420,6 @@ Draggables can be reused .. literalinclude:: drag-n-drop-demo2.xml Examples of targets on draggables ------------------------- +--------------------------------- .. literalinclude:: drag-n-drop-demo3.xml diff --git a/doc/public/course_data_formats/graphical_slider_tool/graphical_slider_tool.rst b/doc/public/course_data_formats/graphical_slider_tool/graphical_slider_tool.rst index 3fac46e873..7119c53c41 100644 --- a/doc/public/course_data_formats/graphical_slider_tool/graphical_slider_tool.rst +++ b/doc/public/course_data_formats/graphical_slider_tool/graphical_slider_tool.rst @@ -362,7 +362,7 @@ that has to be updated on a parameter's change, then one can define a special function to handle this. The "output" of such a function must be set to "none", and the JavaScript code inside this function must update the MathJax element by itself. Before exiting, MathJax typeset function should -be called so that the new text will be re-rendered by MathJax. For example, +be called so that the new text will be re-rendered by MathJax. For example:: ... diff --git a/doc/public/course_data_formats/symbolic_response.rst b/doc/public/course_data_formats/symbolic_response.rst index 8463faab3c..4abb0ec990 100644 --- a/doc/public/course_data_formats/symbolic_response.rst +++ b/doc/public/course_data_formats/symbolic_response.rst @@ -19,11 +19,11 @@ This is a partial list of features, to be revised as we go along: An example of a problem:: - - + - + It's a bit of a pain to enter that. diff --git a/doc/public/index.rst b/doc/public/index.rst index 064b3ff443..cda3809237 100644 --- a/doc/public/index.rst +++ b/doc/public/index.rst @@ -28,6 +28,7 @@ Specific Problem Types course_data_formats/conditional_module/conditional_module.rst course_data_formats/word_cloud/word_cloud.rst course_data_formats/custom_response.rst + course_data_formats/symbolic_response.rst Internal Data Formats From 0eaa7cccb510745d1a82c513680b0340ad3866c0 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Fri, 14 Jun 2013 12:49:44 +0300 Subject: [PATCH 07/10] adds test for doc generation --- rakefiles/tests.rake | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rakefiles/tests.rake b/rakefiles/tests.rake index b4754c2c3c..ae16801f5d 100644 --- a/rakefiles/tests.rake +++ b/rakefiles/tests.rake @@ -33,6 +33,17 @@ def run_acceptance_tests(system, report_dir, harvest_args) test_sh(django_admin(system, 'acceptance', 'harvest', '--debug-mode', '--tag -skip', harvest_args)) end +# Run documentation tests +desc "Run documentation tests" +task :test_docs do + # Be sure that sphinx can build docs w/o exceptions. + test_message = "If test fails, you shoud run %s and look at whole output and fix exceptions. +(You shouldn't fix rst warnings and errors for this to pass, just get rid of exceptions.)" + puts (test_message % ["rake doc"]).colorize( :light_green ) + test_sh('rake doc') + puts (test_message % ["rake doc[pub]"]).colorize( :light_green ) + test_sh('rake doc[pub]') +end directory REPORT_DIR @@ -103,7 +114,7 @@ TEST_TASK_DIRS.each do |dir| end desc "Run all tests" -task :test +task :test => :test_docs desc "Build the html, xml, and diff coverage reports" task :coverage => :report_dirs do From 26565f565e2804700361a7d231f014dbb1005f8c Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Thu, 20 Jun 2013 13:07:41 +0300 Subject: [PATCH 08/10] adds changes to changelog --- CHANGELOG.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index bbaf3f3a6b..7fc07a3f19 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,8 @@ These are notable changes in edx-platform. This is a rolling list of changes, in roughly chronological order, most recent first. Add your entries at or near the top. Include a label indicating the component affected. +Common: Repairs development documentation generation by sphinx. + LMS: Problem rescoring. Added options on the Grades tab of the Instructor Dashboard to allow all students' submissions for a particular problem to be rescored. Also supports resetting all From 0af88b70a3a12aa8b1db0b0767d7a618112489f5 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Thu, 20 Jun 2013 13:09:29 +0300 Subject: [PATCH 09/10] makes tests for sphynx doc generation not to run browser --- rakefiles/tests.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rakefiles/tests.rake b/rakefiles/tests.rake index ae16801f5d..20bd34f4e8 100644 --- a/rakefiles/tests.rake +++ b/rakefiles/tests.rake @@ -40,9 +40,9 @@ task :test_docs do test_message = "If test fails, you shoud run %s and look at whole output and fix exceptions. (You shouldn't fix rst warnings and errors for this to pass, just get rid of exceptions.)" puts (test_message % ["rake doc"]).colorize( :light_green ) - test_sh('rake doc') + test_sh('rake builddocs') puts (test_message % ["rake doc[pub]"]).colorize( :light_green ) - test_sh('rake doc[pub]') + test_sh('rake builddocs[pub]') end directory REPORT_DIR From d57fb777655f7d98101e3ad48938c12659d33936 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Thu, 20 Jun 2013 13:18:04 +0300 Subject: [PATCH 10/10] removes reference to removed module in docs --- docs/source/xmodule.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/source/xmodule.rst b/docs/source/xmodule.rst index d68ab779f6..d7552812a0 100644 --- a/docs/source/xmodule.rst +++ b/docs/source/xmodule.rst @@ -144,13 +144,6 @@ Templates :members: :show-inheritance: -Time parse -========== - -.. automodule:: xmodule.timeparse - :members: - :show-inheritance: - Vertical ========