mirror of
https://github.com/minio/docs.git
synced 2025-07-28 19:42:10 +03:00
add build support for npm
This commit is contained in:
13
.gitignore
vendored
13
.gitignore
vendored
@ -1,17 +1,6 @@
|
||||
# Ignore build directory
|
||||
build
|
||||
|
||||
# Ignore venv
|
||||
venv
|
||||
|
||||
# Ignore vscode
|
||||
|
||||
.vscode
|
||||
|
||||
# ignore pycache
|
||||
|
||||
__pycache__
|
||||
|
||||
# ignore node
|
||||
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
3
Makefile
3
Makefile
@ -7,7 +7,7 @@ SPHINXOPTS ?= -n
|
||||
SPHINXBUILD ?= sphinx-build
|
||||
SOURCEDIR = source
|
||||
BUILDDIR = build
|
||||
GITDIR = $(shell git branch --show-current)
|
||||
GITDIR = $(shell git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
# Put it first so that "make" without argument is like "make help".
|
||||
help:
|
||||
@ -24,3 +24,4 @@ dryrun:
|
||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||
%: Makefile
|
||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)/$(GITDIR)" $(SPHINXOPTS) $(O)
|
||||
@npm run build
|
||||
|
@ -19,6 +19,12 @@ source venv/bin/activate
|
||||
pip3 install -r requirements.txt
|
||||
```
|
||||
|
||||
```shell
|
||||
nvm install v14.5.0
|
||||
nvm use v14.5.0
|
||||
npm install
|
||||
```
|
||||
|
||||
To make the build, do:
|
||||
|
||||
```shell
|
||||
|
@ -64,4 +64,4 @@ gulp.task('watch', function () {
|
||||
});
|
||||
|
||||
// Build
|
||||
gulp.task('default', gulp.series('handleStyle', 'handleJs', 'watch'));
|
||||
gulp.task('default', gulp.series('handleStyle', 'handleJs'));
|
||||
|
6007
package-lock.json
generated
Normal file
6007
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,7 @@
|
||||
"description": "Official MinIO documentation",
|
||||
"main": "index.rst",
|
||||
"scripts": {
|
||||
"build": "gulp",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
|
@ -16,7 +16,7 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
||||
|
||||
// Render navigation menu
|
||||
if($('#nav')[0]) {
|
||||
var navData = '/_static/data/nav.json';
|
||||
var navData = '_static/data/nav.json'; // Keep this link relative
|
||||
var nav = $('.nav');
|
||||
|
||||
$.getJSON( navData, function(data) {
|
||||
|
Reference in New Issue
Block a user