Skip to content

Commit 3853c06

Browse files
committed
removing _build
1 parent d60709c commit 3853c06

2,599 files changed

Lines changed: 1028313 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: build website
19-
run: bash bin/website.sh
19+
run: bash build.sh
2020

2121
- name: Upload static files as artifact
2222
id: deployment

build.sh

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
3+
function build_static_site () {
4+
5+
echo "Generating static site..."
6+
rm -fr site
7+
mkdir site
8+
9+
python3 -m pip install --upgrade pip
10+
python3 -m venv .
11+
source bin/activate
12+
13+
./bin/pip install mkdocs
14+
./bin/pip install mkdocs-material
15+
16+
# Documentation framework
17+
./bin/pip install sphinx
18+
# Sphinx style
19+
./bin/pip install furo
20+
21+
./bin/mkdocs build
22+
echo "Done."
23+
24+
}
25+
26+
function build_website_docs () {
27+
28+
echo "Building HTML documentation..."
29+
cd docs/manual
30+
make html
31+
mkdir -p ../../site/docs
32+
mv _build/html/* ../../site/docs
33+
cd ../..
34+
echo "Done."
35+
36+
}
37+
38+
function build_print_docs () {
39+
40+
echo "Building printable documentation..."
41+
cd docs/manual
42+
make latexpdf
43+
mv _build/latex/embroidermodder.pdf ../../site/docs/emrm_current.pdf
44+
cd ../..
45+
echo "Done."
46+
47+
}
48+
49+
if [ $# -lt 1 ]; then
50+
build_static_site
51+
build_website_docs
52+
build_print_docs
53+
exit
54+
fi
55+
56+
# For running individual build steps when targeting an issue
57+
# effecting one step.
58+
while [ $# -gt 0 ]; do
59+
case $1 in
60+
--site) build_static_site;;
61+
--web) build_website_docs;;
62+
--print) build_print_docs;;
63+
*) echo "Unrecognised option $1.";;
64+
esac
65+
shift
66+
done

docs/manual/LICENSE.md

Lines changed: 445 additions & 0 deletions

docs/manual/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2.71 KB
Binary file not shown.
3.34 KB
Binary file not shown.
2.39 KB
Binary file not shown.
14.4 KB
Binary file not shown.
3.28 KB
Binary file not shown.
3.42 KB
Binary file not shown.

0 commit comments

Comments
 (0)