diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 86a0de7..25d93fc 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,8 +33,16 @@ jobs: run: | curl -L -s https://unpkg.com/wq > docs/js/wq.js curl -L -s https://unpkg.com/@wq/markdown@latest > docs/js/markdown.js + curl -L -s https://unpkg.com/@wq/analyst@next > docs/js/analyst.js + curl -L -s https://unpkg.com/@wq/chart@next > docs/js/chart.js sed -i "s/^import\(.*\)https:\/\/unpkg.com\/wq/import\1.\/wq.js/" docs/js/*.js sed -i "s/^import\(.*\)https:\/\/unpkg.com\/@wq\/markdown@next/import\1.\/markdown.js/" docs/js/*.js + sed -i "s/^import\(.*\)https:\/\/unpkg.com\/@wq\/analyst/import\1.\/analyst.js/" docs/js/*.js + sed -i "s/^import\(.*\)https:\/\/unpkg.com\/@wq\/chart/import\1.\/chart.js/" docs/js/*.js + - name: Export Django site + run: | + python -m pip install django djangorestframework pandas + python -m unittest tests.generate_docs - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: diff --git a/.gitignore b/.gitignore index 74bde4b..19d5b36 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ build dist node_modules +docs/static +docs/timeseries.* diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index ed4a06a..cefab5f 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -13,6 +13,15 @@ margin-right: auto; max-width: 100%; } + .MuiAppBar-colorPrimary img { + border-radius: 4px; + padding-left: 4px; + padding-right: 4px; + margin-left: -18px !important; + margin-top: 4px; + margin-bottom: 4px; + background-color: rgba(0, 0, 0, 0.6); + } + + - + - + diff --git a/tests/files/timeseries.html b/tests/files/timeseries.html index cdaed18..bd9dbfc 100644 --- a/tests/files/timeseries.html +++ b/tests/files/timeseries.html @@ -3,20 +3,20 @@