Skip to content

Commit

Permalink
Revise to current Mathics core master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Feb 10, 2024
1 parent 9182be1 commit 8c1096e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion mathics_django/doc/django_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 8c1096e

Please sign in to comment.