Add a script to install docs locally
I feel like there should be an option for people to install docs from docs-gtk-org
branch locally on their computer.
I know I can use prepare-docs.sh
for this but it has a few issues.
- TARGET must be specified and must exist
- To install to Devhelp app, user must know where to put docs so that they show up in Devhelp
- It moves files instead of copying. So, every time a user needs to re-install docs after a
git pull
, everything has to re-compile even if only a fraction of the docs were modified. - User has to remove
_build
directory in order to even runprepare-docs.sh
for the second time.
So, I have modified the prepare-docs.sh
script so that if Devhelp is installed and no TARGET is provided, it installs docs locally in Devhelp books directory. It supports both flatpak and normal installation of Devhelp. If Devhelp is not installed, the script installs docs in /usr/local/share/doc
instead.
If possible, I would like my modified script to be added to the docs-gtk-org
branch as install-docs.sh
so that it is easy for me and everyone else to install the docs locally.