mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# A Makefile for commands I run frequently:
|
|
|
|
clean:
|
|
rm -rf dist
|
|
rm -rf _static
|
|
rm -rf jrnl.egg-info
|
|
rm -rf docs/_build
|
|
rm -rf _build
|
|
rm -rf _sources
|
|
rm -rf _static
|
|
rm -f *.html
|
|
|
|
html:
|
|
curl https://raw.githubusercontent.com/mateuszkocz/3l/master/3L/3L.less > docs/_themes/jrnl/static/less/3L.less ;\
|
|
lessc --clean-css docs/_themes/jrnl/static/less/jrnl.less docs/_themes/jrnl/static/css/jrnl.css ;\
|
|
cd docs ;\
|
|
make html ;\
|
|
cd .. ;\
|
|
open docs/_build/html/index.html ;\
|
|
|
|
# Build GitHub Page from docs
|
|
docs:
|
|
git checkout gh-pages ; \
|
|
git checkout master docs ; \
|
|
git checkout master jrnl ; \
|
|
curl https://raw.githubusercontent.com/mateuszkocz/3l/master/3L/3L.less > docs/_themes/jrnl/static/less/3L.less ;\
|
|
lessc --clean-css docs/_themes/jrnl/static/less/jrnl.less docs/_themes/jrnl/static/css/jrnl.css ; \
|
|
cd docs ; \
|
|
make html ; \
|
|
cd .. ; \
|
|
cp -r docs/_build/html/* . ; \
|
|
git add -A ; \
|
|
git commit -m "Updated docs from master" ; \
|
|
git push -u origin gh-pages ; \
|
|
git checkout master
|
|
|
|
# Upload to pipy
|
|
dist:
|
|
python setup.py publish
|