specter-desktop/utils/mkdocs-wrapper.sh

54 lines
2 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
# netlify is configured to use the utils-directory as base directory
# This prevents that it's using the requirements-txt and a lot of issues
# So in order to make the script work the exact same in both cases,
# we first change the directory one up, no matter from where this script
# has been executed from.
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
Chore: Upgrade to python 3.10 (#1688) * changed class name * Working requirements.in * Reordered lines to see changes better * Working minimal upgrades * Added hashes * - Upgraded python to 3.10 and bitcoin to v23.0 - Added libzmq to build process, to enable future use cases such as https://github.com/cryptoadvance/specter-desktop/issues/778 - added --without-gui to remove configure warning that gui will not be built. * Added line-break * - Updated the embit version to 0.4.13 - pushed python-bitcoind image * - Build registry.gitlab.com/c8527/specter/cirrus-jammy:20220504 - updated docker references * - added cypress-base-ubuntu-jammy * - added cypress-python * - fixed unchanged registry path * Fixed wrong path * readme change * Fixed path * Changed github-changelog * changes registrar links * Fixed bitcoin version * Set reset bitcoin version to 22 * Set bitcoin version to 22.0 * Fixed black issue via https://github.com/psf/black/issues/2964#issuecomment-1080974737 * Revert for changelog * Upgraded pytest because otherwise I get the error https://github.com/pytest-dev/pytest/discussions/9195 * Added temporary fix for upgraded hwi version. Should be fixed in https://github.com/cryptoadvance/specter-desktop/pull/1693 * more verbosity for page generation * doc about python 3.10 * docs: update TOC * yet another library necessary * black * Corrected tag * Fixed wrong python version introduced in the merge commit * Use same babel version across requirements and test_requirements * Created the reuqirements.txt with python 3.8 such, that that netlify can create the python docs in python 3.8, while everything elese works also with python 3.10 * testing https://peps.python.org/pep-0508/#environment-markers * CHanged just the txt * Added comments * electron docker build successful * rename image to cypress-python:v9.7.0 * doc * docker file rename * fix pyinstaller pip error by changing requirements.in * reference jammy electron dockerfile See https://github.com/electron-userland/electron-builder/pull/6922#issuecomment-1234420845 * updated all references to dockerimages * fix release-build * fix the image-version to something else than latest. pin all the stuff! * revert to old image to avoid glibc issues Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: k9ert <k9ert@users.noreply.github.com>
2022-09-13 10:44:49 +02:00
echo " --> Starting mkdocs-wrapper.sh"
# This is mainly used by netlify where we're using the free starter-plan
# Checkout https://github.com/cryptoadvance/specter-desktop/pull/1463
# for a more birds eye view of this script.
# The nelify settings for this to work need to be:
# * Repository: github.com/cryptoadvance/specter-desktop
# * Base directory: Not set
# * Build command: ./utils/mkdocs-wrapper.sh build
# * Publish directory: site
# In the Environment Variables, you have to set:
Chore: Upgrade to python 3.10 (#1688) * changed class name * Working requirements.in * Reordered lines to see changes better * Working minimal upgrades * Added hashes * - Upgraded python to 3.10 and bitcoin to v23.0 - Added libzmq to build process, to enable future use cases such as https://github.com/cryptoadvance/specter-desktop/issues/778 - added --without-gui to remove configure warning that gui will not be built. * Added line-break * - Updated the embit version to 0.4.13 - pushed python-bitcoind image * - Build registry.gitlab.com/c8527/specter/cirrus-jammy:20220504 - updated docker references * - added cypress-base-ubuntu-jammy * - added cypress-python * - fixed unchanged registry path * Fixed wrong path * readme change * Fixed path * Changed github-changelog * changes registrar links * Fixed bitcoin version * Set reset bitcoin version to 22 * Set bitcoin version to 22.0 * Fixed black issue via https://github.com/psf/black/issues/2964#issuecomment-1080974737 * Revert for changelog * Upgraded pytest because otherwise I get the error https://github.com/pytest-dev/pytest/discussions/9195 * Added temporary fix for upgraded hwi version. Should be fixed in https://github.com/cryptoadvance/specter-desktop/pull/1693 * more verbosity for page generation * doc about python 3.10 * docs: update TOC * yet another library necessary * black * Corrected tag * Fixed wrong python version introduced in the merge commit * Use same babel version across requirements and test_requirements * Created the reuqirements.txt with python 3.8 such, that that netlify can create the python docs in python 3.8, while everything elese works also with python 3.10 * testing https://peps.python.org/pep-0508/#environment-markers * CHanged just the txt * Added comments * electron docker build successful * rename image to cypress-python:v9.7.0 * doc * docker file rename * fix pyinstaller pip error by changing requirements.in * reference jammy electron dockerfile See https://github.com/electron-userland/electron-builder/pull/6922#issuecomment-1234420845 * updated all references to dockerimages * fix release-build * fix the image-version to something else than latest. pin all the stuff! * revert to old image to avoid glibc issues Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: k9ert <k9ert@users.noreply.github.com>
2022-09-13 10:44:49 +02:00
# PYTHON_VERSION 3.10
# We're using mkdocs for creating the static pages
# We don't pin this dependency as this is not relevant for either testing or
# production. Therefore it's easier to simply let it upgrade automatically:
Chore: Upgrade to python 3.10 (#1688) * changed class name * Working requirements.in * Reordered lines to see changes better * Working minimal upgrades * Added hashes * - Upgraded python to 3.10 and bitcoin to v23.0 - Added libzmq to build process, to enable future use cases such as https://github.com/cryptoadvance/specter-desktop/issues/778 - added --without-gui to remove configure warning that gui will not be built. * Added line-break * - Updated the embit version to 0.4.13 - pushed python-bitcoind image * - Build registry.gitlab.com/c8527/specter/cirrus-jammy:20220504 - updated docker references * - added cypress-base-ubuntu-jammy * - added cypress-python * - fixed unchanged registry path * Fixed wrong path * readme change * Fixed path * Changed github-changelog * changes registrar links * Fixed bitcoin version * Set reset bitcoin version to 22 * Set bitcoin version to 22.0 * Fixed black issue via https://github.com/psf/black/issues/2964#issuecomment-1080974737 * Revert for changelog * Upgraded pytest because otherwise I get the error https://github.com/pytest-dev/pytest/discussions/9195 * Added temporary fix for upgraded hwi version. Should be fixed in https://github.com/cryptoadvance/specter-desktop/pull/1693 * more verbosity for page generation * doc about python 3.10 * docs: update TOC * yet another library necessary * black * Corrected tag * Fixed wrong python version introduced in the merge commit * Use same babel version across requirements and test_requirements * Created the reuqirements.txt with python 3.8 such, that that netlify can create the python docs in python 3.8, while everything elese works also with python 3.10 * testing https://peps.python.org/pep-0508/#environment-markers * CHanged just the txt * Added comments * electron docker build successful * rename image to cypress-python:v9.7.0 * doc * docker file rename * fix pyinstaller pip error by changing requirements.in * reference jammy electron dockerfile See https://github.com/electron-userland/electron-builder/pull/6922#issuecomment-1234420845 * updated all references to dockerimages * fix release-build * fix the image-version to something else than latest. pin all the stuff! * revert to old image to avoid glibc issues Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: k9ert <k9ert@users.noreply.github.com>
2022-09-13 10:44:49 +02:00
echo " Running pip install mkdocs mkdocs-video mdx_truly_sane_lists"
Feature: Multisig beginner guide (#1731) * Added pictures * Added text * wrote more in the guide * Added links to vendors websites * Added more links * Added fingerprints in fig * added links ot other guides * Improved arrows * Added links * Better sub-bullets * Changed the Testing part * typos * Chore: Adjusted releasing process and adding liquidissuer (#1716) * refactor build-linux to avoid build-ci.sh * adding set_setup_py_version to release_helper * yet another tiny release-helper * adjusted for win-compatibility * fix windows build again * fix directory-change * part2 * kick * kick * kick * kick * dependencie for ./utils * revert before_script * unix, not linux * fix buildscript * restore version.txt * fix * fex exe * bugfix: not exiting directory * kick * kick * kick * adding liquidissuer * docstrings * fix upload locations * some docs * ommit external exts in DevelopmentConfig * simplifying startup for external exts * macos improvements * Merge branch 'master' of github.com:cryptoadvance/specter-desktop into liquidissuer * last build-script adjustements * fixed params gain * reapply lost sys changes * upgrade liquidissuer * remove unnecessary print statement. * remove unnecessary EXTENSION_LIST reduction in Development * Bugfix: disable gunicorn for windows * fix version.py * black * fix build * last fixes for the macos-script * Update src/cryptoadvance/specter/util/reflection.py * Better formatting for cli * a bit of reformating for cli_ext * ignoring elements test * skip test * fix link to specterext-dice * Removed link * Added point about fewer devices added more details * Improved link * Added seed plate comparision link * Changed list character * Added link in frint-end * - changed text to multisig guide - Replaced FAQ link by a link to the docs * Added second link to multisig guide. * Added video plugin to mkdocs * Added requirement mkdocs-video * Added mkdocs-video in the script * reset requirements * solved https://github.com/cryptoadvance/specter-desktop/issues/1736 * Added link in Readme * changed video link * Fixed sublist identation * Changed video guide text * Explained fingerprint * Improved registering multisig setup * Add picture about registering * updated pic * Merged the table from the tradeoff.md into the guide * typo fix * Fixed link * Replaced https://deploy-preview-1731--specter-desktop-docs.netlify.app by https://specter-desktop-docs.netlify.app Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-06-02 17:29:26 +02:00
pip3 install mkdocs mkdocs-video mdx_truly_sane_lists
# At the sime of this comment, we had: mkdocs==1.2.3
# We want the README-md file in the root-folder for people browsing github
# but we also want it for people browsing https://docs.specter.solutions/desktop
# So for the second case, we copy it there and change all the links
if [ "$1" = "build" ]; then
Chore: Upgrade to python 3.10 (#1688) * changed class name * Working requirements.in * Reordered lines to see changes better * Working minimal upgrades * Added hashes * - Upgraded python to 3.10 and bitcoin to v23.0 - Added libzmq to build process, to enable future use cases such as https://github.com/cryptoadvance/specter-desktop/issues/778 - added --without-gui to remove configure warning that gui will not be built. * Added line-break * - Updated the embit version to 0.4.13 - pushed python-bitcoind image * - Build registry.gitlab.com/c8527/specter/cirrus-jammy:20220504 - updated docker references * - added cypress-base-ubuntu-jammy * - added cypress-python * - fixed unchanged registry path * Fixed wrong path * readme change * Fixed path * Changed github-changelog * changes registrar links * Fixed bitcoin version * Set reset bitcoin version to 22 * Set bitcoin version to 22.0 * Fixed black issue via https://github.com/psf/black/issues/2964#issuecomment-1080974737 * Revert for changelog * Upgraded pytest because otherwise I get the error https://github.com/pytest-dev/pytest/discussions/9195 * Added temporary fix for upgraded hwi version. Should be fixed in https://github.com/cryptoadvance/specter-desktop/pull/1693 * more verbosity for page generation * doc about python 3.10 * docs: update TOC * yet another library necessary * black * Corrected tag * Fixed wrong python version introduced in the merge commit * Use same babel version across requirements and test_requirements * Created the reuqirements.txt with python 3.8 such, that that netlify can create the python docs in python 3.8, while everything elese works also with python 3.10 * testing https://peps.python.org/pep-0508/#environment-markers * CHanged just the txt * Added comments * electron docker build successful * rename image to cypress-python:v9.7.0 * doc * docker file rename * fix pyinstaller pip error by changing requirements.in * reference jammy electron dockerfile See https://github.com/electron-userland/electron-builder/pull/6922#issuecomment-1234420845 * updated all references to dockerimages * fix release-build * fix the image-version to something else than latest. pin all the stuff! * revert to old image to avoid glibc issues Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: k9ert <k9ert@users.noreply.github.com>
2022-09-13 10:44:49 +02:00
echo " --> Copying and adjusting README.md"
cp README.md docs
sed -i 's/docs\///g' docs/README.md
sed -i 's/Checkout our Documentation at.*//' docs/README.md
sed -i 's/\.\.\/README.md/README.m/g' docs/*.md
fi
Chore: Upgrade to python 3.10 (#1688) * changed class name * Working requirements.in * Reordered lines to see changes better * Working minimal upgrades * Added hashes * - Upgraded python to 3.10 and bitcoin to v23.0 - Added libzmq to build process, to enable future use cases such as https://github.com/cryptoadvance/specter-desktop/issues/778 - added --without-gui to remove configure warning that gui will not be built. * Added line-break * - Updated the embit version to 0.4.13 - pushed python-bitcoind image * - Build registry.gitlab.com/c8527/specter/cirrus-jammy:20220504 - updated docker references * - added cypress-base-ubuntu-jammy * - added cypress-python * - fixed unchanged registry path * Fixed wrong path * readme change * Fixed path * Changed github-changelog * changes registrar links * Fixed bitcoin version * Set reset bitcoin version to 22 * Set bitcoin version to 22.0 * Fixed black issue via https://github.com/psf/black/issues/2964#issuecomment-1080974737 * Revert for changelog * Upgraded pytest because otherwise I get the error https://github.com/pytest-dev/pytest/discussions/9195 * Added temporary fix for upgraded hwi version. Should be fixed in https://github.com/cryptoadvance/specter-desktop/pull/1693 * more verbosity for page generation * doc about python 3.10 * docs: update TOC * yet another library necessary * black * Corrected tag * Fixed wrong python version introduced in the merge commit * Use same babel version across requirements and test_requirements * Created the reuqirements.txt with python 3.8 such, that that netlify can create the python docs in python 3.8, while everything elese works also with python 3.10 * testing https://peps.python.org/pep-0508/#environment-markers * CHanged just the txt * Added comments * electron docker build successful * rename image to cypress-python:v9.7.0 * doc * docker file rename * fix pyinstaller pip error by changing requirements.in * reference jammy electron dockerfile See https://github.com/electron-userland/electron-builder/pull/6922#issuecomment-1234420845 * updated all references to dockerimages * fix release-build * fix the image-version to something else than latest. pin all the stuff! * revert to old image to avoid glibc issues Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: k9ert <k9ert@users.noreply.github.com>
2022-09-13 10:44:49 +02:00
echo " --> now running mkdocs $1 $2"
mkdocs $1 $2
# As netlify expects the site-dir in its basedir (./utils, see above) we need
# to mv it
mv site ./utils/site
# Potentially, we could rollback here the changes but that would be anoying if you want
Feature: Multisig beginner guide (#1731) * Added pictures * Added text * wrote more in the guide * Added links to vendors websites * Added more links * Added fingerprints in fig * added links ot other guides * Improved arrows * Added links * Better sub-bullets * Changed the Testing part * typos * Chore: Adjusted releasing process and adding liquidissuer (#1716) * refactor build-linux to avoid build-ci.sh * adding set_setup_py_version to release_helper * yet another tiny release-helper * adjusted for win-compatibility * fix windows build again * fix directory-change * part2 * kick * kick * kick * kick * dependencie for ./utils * revert before_script * unix, not linux * fix buildscript * restore version.txt * fix * fex exe * bugfix: not exiting directory * kick * kick * kick * adding liquidissuer * docstrings * fix upload locations * some docs * ommit external exts in DevelopmentConfig * simplifying startup for external exts * macos improvements * Merge branch 'master' of github.com:cryptoadvance/specter-desktop into liquidissuer * last build-script adjustements * fixed params gain * reapply lost sys changes * upgrade liquidissuer * remove unnecessary print statement. * remove unnecessary EXTENSION_LIST reduction in Development * Bugfix: disable gunicorn for windows * fix version.py * black * fix build * last fixes for the macos-script * Update src/cryptoadvance/specter/util/reflection.py * Better formatting for cli * a bit of reformating for cli_ext * ignoring elements test * skip test * fix link to specterext-dice * Removed link * Added point about fewer devices added more details * Improved link * Added seed plate comparision link * Changed list character * Added link in frint-end * - changed text to multisig guide - Replaced FAQ link by a link to the docs * Added second link to multisig guide. * Added video plugin to mkdocs * Added requirement mkdocs-video * Added mkdocs-video in the script * reset requirements * solved https://github.com/cryptoadvance/specter-desktop/issues/1736 * Added link in Readme * changed video link * Fixed sublist identation * Changed video guide text * Explained fingerprint * Improved registering multisig setup * Add picture about registering * updated pic * Merged the table from the tradeoff.md into the guide * typo fix * Fixed link * Replaced https://deploy-preview-1731--specter-desktop-docs.netlify.app by https://specter-desktop-docs.netlify.app Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-06-02 17:29:26 +02:00
# to edit files.