Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Pfeifer
dynare
Commits
e19b04f3
Verified
Commit
e19b04f3
authored
6 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Use local MathJax.
parent
c08b4edb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-1
3 additions, 1 deletion
.gitignore
Makefile
+20
-2
20 additions, 2 deletions
Makefile
src/source/conf.py
+2
-0
2 additions, 0 deletions
src/source/conf.py
with
25 additions
and
3 deletions
.gitignore
+
3
−
1
View file @
e19b04f3
*.zip
python/*
src/build/*
src/source/__pycache__/*
py/domain/__pycache__/*
\ No newline at end of file
py/domain/__pycache__/*
src/source/_static/mathjax/*
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Makefile
+
20
−
2
View file @
e19b04f3
...
...
@@ -15,20 +15,26 @@
# You should have received a copy of the GNU General Public License
# along with Dynare. If not, see <http://www.gnu.org/licenses/>.
MATHJAX_VERSION
=
2.7.5
SRC
=
$(
wildcard src/source/
*
.rst
)
.PHONY
:
all html pdf deps python mathjax
all
:
html pdf
html
:
src/build/html/index.html
html
:
deps
src/build/html/index.html
src/build/html/index.html
:
$(SRC) src/source/conf.py
source
python/bin/activate
;
make
-C
src html
pdf
:
src/build/latex/dynare.pdf
pdf
:
deps
src/build/latex/dynare.pdf
src/build/latex/dynare.pdf
:
$(SRC) src/source/conf.py
source
python/bin/activate
;
make
-C
src latexpdf
deps
:
python mathjax
python
:
python/bin/python3
python/bin/python3
:
...
...
@@ -37,3 +43,15 @@ python/bin/python3:
cp
py/pygment/dynare.py python/lib/python3.
*
/site-packages/pygments/lexers/
cd
python/lib/python3.
*
/site-packages/pygments/lexers
;
python3 _mapping.py
patch
-i
py/basic.css_t.patch python/lib/python3.
*
/site-packages/sphinx/themes/basic/static/basic.css_t
mathjax
:
src/source/_static/mathjax/MathJax.js
@
touch
src/source/_static/mathjax/MathJax.js
src/source/_static/mathjax/MathJax.js
:
mathjax-$(MATHJAX_VERSION).zip
unzip mathjax-
$(
MATHJAX_VERSION
)
.zip
mv
MathJax-
$(
MATHJAX_VERSION
)
src/source/_static/mathjax
mathjax-$(MATHJAX_VERSION).zip
:
wget https://github.com/mathjax/MathJax/archive/
$(
MATHJAX_VERSION
)
.zip
mv
$(
MATHJAX_VERSION
)
.zip mathjax-
$(
MATHJAX_VERSION
)
.zip
@
touch
mathjax-
$(
MATHJAX_VERSION
)
.zip
This diff is collapsed.
Click to expand it.
src/source/conf.py
+
2
−
0
View file @
e19b04f3
...
...
@@ -31,6 +31,8 @@ templates_path = ['_templates']
html_static_path
=
[
'
_static
'
]
mathjax_path
=
'
mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
'
master_doc
=
'
index
'
project
=
u
'
Dynare
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment