Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offline docs - make download easier #80

Open
milahu opened this issue Nov 24, 2019 · 0 comments
Open

offline docs - make download easier #80

milahu opened this issue Nov 24, 2019 · 0 comments

Comments

@milahu
Copy link

milahu commented Nov 24, 2019

getting offline docs should be easier

for now, i have to

git clone --branch source-3.0 --depth 1 https://github.com/svgdotjs/svgdotjs.github.io.git
# done in 5 seconds, received 1.6 MB

cd svgdotjs.github.io
npm install
# done in 3 minutes, after compiling node-sass

# dynamic docs
npm run serve -s &
xdg-open http://localhost:8030/

# static docs - configure
patch -b -p1 statify.php <<EOF
--- a/statify.php
+++ b/statify.php
@@ -21,2 +21,4 @@

+$url = '';
+
 // Don't touch below here
EOF

# static docs - build
curl http://localhost:8030/statify.php
sudo npm install -g node-static
static -p 8040 3.0/ &
xdg-open http://localhost:8040

the worst part is:
i need 100 MByte disk space, just for the node_modules folder
and the compiled/static docs only have 3 MByte, zipped only 250 KByte

i would love to see this done more efficient ....
probably just release the pre-compiled static docs

most people will just need docs for version 3.0 or 2.7
and if they need more, they can still clone + install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant