Skip to content

Commit

Permalink
split common_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Mar 16, 2024
1 parent 00d74f6 commit 993c0ad
Show file tree
Hide file tree
Showing 6 changed files with 1,089 additions and 1,048 deletions.
29 changes: 25 additions & 4 deletions mathics/doc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
# -*- coding: utf-8 -*-
"""
Module for handling Mathics-style documentation.
A module and library that assists in organizing document data
located in static files and docstrings from
Mathics3 Builtin Modules. Builtin Modules are written in Python and
reside either in the Mathics3 core (mathics.builtin) or are packaged outside,
in Mathics3 Modules e.g. pymathics.natlang.
Right now this covers common LaTeX/PDF and routines common to
Mathics Django. When this code is moved out, perhaps it will
include the Mathics Django-specific piece.
This data is stored in a way that facilitates:
* organizing information to produce a LaTeX file
* running documentation tests
* producing HTML-based documentation
The command-line utility ``docpipeline.py``, loads the data from
Python modules and static files, accesses the functions here.
Mathics Django also uses this library for its HTML-based documentation.
The Mathics3 builtin function ``Information[]`` also uses to provide the
information it reports.
As with reading in data, final assembly to a LaTeX file or running
documentation tests is done elsewhere.
FIXME: This code should be replaced by Sphinx and autodoc.
Things are such a mess, that it is too difficult to contemplate this right now.
Also there higher-priority flaws that are more more pressing.
In the shorter, we might we move code for extracting printing to a
separate package.
"""
Loading

0 comments on commit 993c0ad

Please sign in to comment.