diff --git a/.github/workflows/osx.yaml b/.github/workflows/osx.yaml index 6257100bb..e8c7af1ff 100644 --- a/.github/workflows/osx.yaml +++ b/.github/workflows/osx.yaml @@ -30,7 +30,7 @@ jobs: # For testing 3.11 we need to do something like the below until the next Mathics3 is released # python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full] # python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full] - git clone --branch doc-code-rebased-rebased https://github.com/Mathics3/mathics-core + git clone https://github.com/Mathics3/mathics-core (cd mathics-core && pip3 install -e .[full]) (cd mathics-core && bash ./admin-tools/make-op-tables.sh) - name: Install Mathics3 Django diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a38b17ab6..11a13af08 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -29,7 +29,7 @@ jobs: # For testing 3.11 we need to do something like the below until the next Mathics3 is released # python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full] # python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full] - git clone --branch doc-code-rebased-rebased https://github.com/Mathics3/mathics-core + git clone https://github.com/Mathics3/mathics-core (cd mathics-core && pip3 install -e .[full]) (cd mathics-core && bash ./admin-tools/make-op-tables.sh) - name: Install Mathics3 Django diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1aa05578c..1987c8612 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -32,7 +32,7 @@ jobs: # For testing 3.11 we need to do something like the below until the next Mathics3 is released # python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full] # python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full] - git clone --branch doc-code-rebased-rebased https://github.com/Mathics3/mathics-core + git clone https://github.com/Mathics3/mathics-core bash -c '(cd mathics-core && pip3 install -e .[full])' bash -c '(cd mathics-core && bash ./admin-tools/make-op-tables.sh)' - name: Install Mathics3 Django diff --git a/mathics_django/doc/django_doc.py b/mathics_django/doc/django_doc.py index fac8d0e28..6dd6ed9da 100644 --- a/mathics_django/doc/django_doc.py +++ b/mathics_django/doc/django_doc.py @@ -205,9 +205,17 @@ def get_uri(self) -> str: class DjangoDocPart(DocPart, DjangoDocElement): + """ + Represents one of the main parts of the document customized for Django. Parts + can be loaded from a mdoc file, generated automatically from + the docstrings of Builtin objects under `mathics.builtin`, or loaded + as a Mathics3 module. + """ + + chapter_class = DjangoDocChapter + def __init__(self, doc, title, is_reference=False): super(DjangoDocPart, self).__init__(doc, title, is_reference) - self.chapter_class = DjangoDocChapter def get_collection(self): """Return a list of parts in this doc"""