Ticket #7477: trac_7477_setup_doc_load.patch

File trac_7477_setup_doc_load.patch, 3.3 KB (added by Stefan, 8 years ago)

Matroid setup, autoload, documentation

  • doc/en/reference/index.rst

    # HG changeset patch
    # User Stefan van Zwam <stefanvanzwam@gmail.com>
    # Date 1375200166 14400
    # Node ID 81698c4c4cd5b8ea7c8172320c3b81572f22c006
    # Parent  3faf0f59eeece44247af987306cd2ce38d303fda
    Trac 7477: setup, reference manual, automatic import modifications
    
    diff --git a/doc/en/reference/index.rst b/doc/en/reference/index.rst
    a b  
    5151
    5252* :doc:`Combinatorics <combinat/index>`
    5353* :doc:`Graph Theory <graphs/index>`
     54* :doc:`Matroid Theory <matroids/index>`
    5455* :doc:`Discrete Dynamics <dynamics/index>`
    5556
    5657Structures, Coercion, Categories
  • new file doc/en/reference/matroids/conf.py

    diff --git a/doc/en/reference/matroids/conf.py b/doc/en/reference/matroids/conf.py
    new file mode 120000
    - +  
     1../conf_sub.py
     2 No newline at end of file
  • new file doc/en/reference/matroids/index.rst

    diff --git a/doc/en/reference/matroids/index.rst b/doc/en/reference/matroids/index.rst
    new file mode 100644
    - +  
     1Matroid Theory
     2==============
     3
     4Basics
     5------
     6
     7.. toctree::
     8   :maxdepth: 1
     9
     10   sage/matroids/constructor
     11   sage/matroids/matroid
     12
     13Built-in families and individual matroids
     14-----------------------------------------
     15
     16.. toctree::
     17   :maxdepth: 1
     18
     19   sage/matroids/matroids_catalog
     20   sage/matroids/catalog
     21
     22Concrete implementations
     23------------------------
     24
     25.. toctree::
     26   :maxdepth: 1
     27
     28   sage/matroids/basis_matroid
     29   sage/matroids/circuit_closures_matroid
     30   sage/matroids/linear_matroid
     31   sage/matroids/rank_matroid
     32
     33Abstract matroid classes
     34------------------------
     35
     36.. toctree::
     37   :maxdepth: 1
     38
     39   sage/matroids/dual_matroid
     40   sage/matroids/minor_matroid
     41   sage/matroids/basis_exchange_matroid
     42
     43Advanced functionality
     44----------------------
     45
     46.. toctree::
     47   :maxdepth: 1
     48
     49   sage/matroids/advanced
     50   sage/matroids/utilities
     51   sage/matroids/extension
     52
     53.. include:: ../footer.txt
  • module_list.py

    diff --git a/module_list.py b/module_list.py
    a b  
    11041104
    11051105    ################################
    11061106    ##
     1107    ## sage.matroids
     1108    ##
     1109    ################################
     1110
     1111    Extension('sage.matroids.matroid',
     1112            ['sage/matroids/matroid.pyx']),
     1113
     1114    Extension('sage.matroids.extension',
     1115            ['sage/matroids/extension.pyx']),
     1116
     1117    Extension('sage.matroids.set_system',
     1118            ['sage/matroids/set_system.pyx']),
     1119
     1120    Extension('sage.matroids.lean_matrix',
     1121            ['sage/matroids/lean_matrix.pyx']),
     1122
     1123    Extension('sage.matroids.basis_exchange_matroid',
     1124            ['sage/matroids/basis_exchange_matroid.pyx']),
     1125
     1126    Extension('sage.matroids.basis_matroid',
     1127            ['sage/matroids/basis_matroid.pyx']),
     1128
     1129    Extension('sage.matroids.linear_matroid',
     1130            ['sage/matroids/linear_matroid.pyx']),
     1131
     1132    Extension('sage.matroids.circuit_closures_matroid',
     1133            ['sage/matroids/circuit_closures_matroid.pyx']),
     1134
     1135    ################################
     1136    ##
    11071137    ## sage.media
    11081138    ##
    11091139    ################################
  • sage/all.py

    diff --git a/sage/all.py b/sage/all.py
    a b  
    161161
    162162from sage.tensor.all     import *
    163163
     164from sage.matroids.all   import *
     165
    164166from copy import copy, deepcopy
    165167
    166168# The code executed here uses a large amount of Sage components