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
ba67544b
Commit
ba67544b
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
fix(chore): doc: remove useless font files copy
refs
#612
parent
5f21248c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!225
Release v4.17.0
,
!215
Resolve "Documentation: localiser les dépendances javascript dans un seul dossier"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/mkdocs-postprocess.js
+0
-13
0 additions, 13 deletions
scripts/mkdocs-postprocess.js
with
0 additions
and
13 deletions
scripts/mkdocs-postprocess.js
+
0
−
13
View file @
ba67544b
...
...
@@ -7,14 +7,8 @@
const
fs
=
require
(
'
fs-extra
'
);
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/en/javascripts
"
;
// pour la compilation en local (anglais)
const
destPath_CSS
=
"
src/assets/docs/stylesheets
"
;
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_JS
);
...
...
@@ -24,17 +18,10 @@ 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
"
,
destPath_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-scrollbar.css
"
,
destPath_CSS
+
"
/mathjax-scrollbar.css
"
);
fs
.
copySync
(
"
docs/matomo-tracking.js
"
,
destPath_JS
+
"
/matomo-tracking.js
"
);
fs
.
copySync
(
"
node_modules/mermaid/dist/mermaid.min.js
"
,
destPath_JS
+
"
/mermaid.min.js
"
);
/*
...
...
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