Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cassiopée
nghyd
Commits
2c21af2e
Commit
2c21af2e
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
fix(doc): Mathjax formulas not displayed when application is run locally
refs
#461
parent
1eac6535
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!175
Resolve "Doc: supprimer l'ascenseur horizontal dans les formules MathJax"
Pipeline
#139903
passed
2 years ago
Stage: install
Stage: build
Stage: clean-stale-branches
Stage: deploy-dev
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/mkdocs-postprocess.js
+37
-9
37 additions, 9 deletions
scripts/mkdocs-postprocess.js
with
37 additions
and
9 deletions
scripts/mkdocs-postprocess.js
+
37
−
9
View file @
2c21af2e
...
...
@@ -6,24 +6,52 @@
const
fs
=
require
(
'
fs-extra
'
);
const
destPath
=
"
src/assets/docs/javascripts
"
;
const
destPathMJ
=
destPath
+
"
/mathjax
"
;
const
destPath_JS
=
"
src/assets/docs/javascripts
"
;
const
destPath_FR_JS
=
"
src/assets/docs/fr/javascripts
"
;
// pour la compilation en local (français)
const
destPath_EN_JS
=
"
src/assets/docs/fr/javascripts
"
;
// pour la compilation en local (anglais)
const
destPath_CSS
=
"
src/assets/docs/stylesheets
"
;
const
destPath_FR_CSS
=
"
src/assets/docs/fr/stylesheets
"
;
// pour la compilation en local (français)
const
destPath_EN_CSS
=
"
src/assets/docs/en/stylesheets
"
;
// pour la compilation en local (anglais)
const
destPath_JS_MJ
=
destPath_JS
+
"
/mathjax
"
;
const
destPath_FR_JS_MJ
=
destPath_FR_JS
+
"
/mathjax
"
;
// pour la compilation en local (français)
const
destPath_EN_JS_MJ
=
destPath_EN_JS
+
"
/mathjax
"
;
// pour la compilation en local (anglais)
// empty destination folder
fs
.
emptyDirSync
(
destPath
);
fs
.
emptyDirSync
(
destPath
_JS
);
// create destination subfolders
fs
.
ensureDirSync
(
destPathMJ
+
"
/fonts/HTML-CSS/TeX/
"
,
{
recursive
:
true
});
fs
.
ensureDirSync
(
destPath
_JS_
MJ
+
"
/fonts/HTML-CSS/TeX/
"
,
{
recursive
:
true
});
// copy required files only
fs
.
copySync
(
"
node_modules/mathjax/es5/tex-mml-chtml.js
"
,
destPathMJ
+
"
/tex-mml-chtml.js
"
);
fs
.
copySync
(
"
node_modules/mathjax/es5/output/chtml/fonts
"
,
destPathMJ
+
"
/output/chtml/fonts
"
);
fs
.
copySync
(
"
node_modules/mathjax/es5/tex-mml-chtml.js
"
,
destPath_JS_MJ
+
"
/tex-mml-chtml.js
"
);
fs
.
copySync
(
"
node_modules/mathjax/es5/tex-mml-chtml.js
"
,
destPath_FR_JS_MJ
+
"
/tex-mml-chtml.js
"
);
fs
.
copySync
(
"
node_modules/mathjax/es5/tex-mml-chtml.js
"
,
destPath_EN_JS_MJ
+
"
/tex-mml-chtml.js
"
);
fs
.
copySync
(
"
node_modules/mathjax/es5/output/chtml/fonts
"
,
destPath_JS_MJ
+
"
/output/chtml/fonts
"
);
fs
.
copySync
(
"
node_modules/mathjax/es5/output/chtml/fonts
"
,
destPath_FR_JS_MJ
+
"
/output/chtml/fonts
"
);
fs
.
copySync
(
"
node_modules/mathjax/es5/output/chtml/fonts
"
,
destPath_EN_JS_MJ
+
"
/output/chtml/fonts
"
);
fs
.
copySync
(
"
docs/mathjax.config.js
"
,
destPath_JS
+
"
/mathjax.config.js
"
);
fs
.
copySync
(
"
docs/mathjax.config.js
"
,
destPath_FR_JS
+
"
/mathjax.config.js
"
);
fs
.
copySync
(
"
docs/mathjax.config.js
"
,
destPath_EN_JS
+
"
/mathjax.config.js
"
);
fs
.
copySync
(
"
docs/mathjax-scrollbar.css
"
,
destPath_JS
+
"
/mathjax.config.js
"
);
fs
.
copySync
(
"
docs/mathjax.config.js
"
,
destPath_FR_JS
+
"
/mathjax.config.js
"
);
fs
.
copySync
(
"
docs/mathjax.config.js
"
,
destPath_EN_JS
+
"
/mathjax.config.js
"
);
fs
.
copySync
(
"
docs/mathjax.config.js
"
,
destPath
+
"
/mathjax.config.js
"
);
fs
.
copySync
(
"
docs/mathjax-scrollbar.css
"
,
destPath_CSS
+
"
/mathjax-scrollbar.css
"
);
fs
.
copySync
(
"
docs/mathjax-scrollbar.css
"
,
destPath_FR_CSS
+
"
/mathjax-scrollbar.css
"
);
fs
.
copySync
(
"
docs/mathjax-scrollbar.css
"
,
destPath_EN_CSS
+
"
/mathjax-scrollbar.css
"
);
fs
.
copySync
(
"
docs/matomo-tracking.js
"
,
destPath
+
"
/matomo-tracking.js
"
);
fs
.
copySync
(
"
docs/matomo-tracking.js
"
,
destPath_JS
+
"
/matomo-tracking.js
"
);
fs
.
copySync
(
"
docs/matomo-tracking.js
"
,
destPath_FR_JS
+
"
/matomo-tracking.js
"
);
fs
.
copySync
(
"
docs/matomo-tracking.js
"
,
destPath_EN_JS
+
"
/matomo-tracking.js
"
);
fs
.
copySync
(
"
node_modules/mermaid/dist/mermaid.min.js
"
,
destPath
+
"
/mermaid.min.js
"
);
fs
.
copySync
(
"
node_modules/mermaid/dist/mermaid.min.js
"
,
destPath_JS
+
"
/mermaid.min.js
"
);
fs
.
copySync
(
"
node_modules/mermaid/dist/mermaid.min.js
"
,
destPath_FR_JS
+
"
/mermaid.min.js
"
);
fs
.
copySync
(
"
node_modules/mermaid/dist/mermaid.min.js
"
,
destPath_EN_JS
+
"
/mermaid.min.js
"
);
// copy illustrated guide (not related to MkDocs, but still a part of the doc)
fs
.
copySync
(
"
docs/cassiopee_notice_illustree_fr.pdf
"
,
"
src/assets/docs/pdf/cassiopee_notice_illustree_fr.pdf
"
);
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