From 79cd1bff976e4b8eccf4e68f022c86c7e67ceef8 Mon Sep 17 00:00:00 2001 From: Eric Arellano Date: Tue, 27 Jun 2023 19:16:07 -0600 Subject: [PATCH] Fix npm build --- .gitignore | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f0dca213..1160feb7 100644 --- a/.gitignore +++ b/.gitignore @@ -135,3 +135,7 @@ dmypy.json /node_modules /snapshot_results /.nodeenv/ + +# These get coped from sphinx-theme-builder. +/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/styles +/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/scripts diff --git a/package.json b/package.json index 3c0fd033..69b75435 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "playwright": "^1.34.3" }, "scripts": { - "build": ":", + "build": "mkdir src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/styles; cp src/qiskit_sphinx_theme/assets/styles/qiskit-sphinx-theme.css src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/styles/qiskit-sphinx-theme.css", "start": "http-server example_docs/docs/_build/html", "test-snapshots": "npm run _docker-build && npm run _docker-run", "_docker-build": "docker build -t qiskit_sphinx_theme -f tests/js/Dockerfile .",