File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # CodeIgniter 4 Admin
2+
3+ This folder contains tools or docs useful for project maintainers.
4+
5+ - [ docbot] ( ./docbot.md ) - build & deploy user guide
6+ - [ release] ( ./release.md ) - build & deploy framework release
Original file line number Diff line number Diff line change 1+ # docbot
2+
3+ Builds & deploys user guide.
4+
5+ The CI4 user guide, warts & all, is rebuilt in a nested
6+ repository clone (` user_guide_src/build/html ` ), with the result
7+ optionally pushed to the ` gh-pages ` branch of the repo.
8+ That would then be publically visible as the in-progress
9+ version of the [ User Guide] ( https://bcit-ci.github.io/CodeIgniter4/ ) .
10+
11+ ## Audience
12+
13+ This script is intended for use by framework maintainers,
14+ i.e. someone with commit rights on the CI4 repository.
15+
16+ This script wraps the conventional user guide building,
17+ i.e. ` user_guide_src/make html ` , with additional
18+ steps.
19+
20+ You will be prompted for your github credentials and
21+ GPG-signing key as appropriate.
22+
23+ ## Usage
24+
25+ Inside a shell prompt, in the project root:
26+
27+ `admin/docbot.sh [deploy]`
28+
29+ If "deploy" is not added, the script execution is considered
30+ a trial run, and nothing is pushed to the repo.
31+
32+ Whether or not deployed, the results are left inside
33+ user_guide_src/build
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Rebuild and deploy CodeIgniter4 user guide
4+
5+ UPSTREAM=https://github.com/bcit-ci/CodeIgniter4.git
6+
7+ # Prepare the nested repo clone folder
8+ cd user_guide_src
9+ rm -rf build/*
10+ mkdir build/html
11+
12+ # Get ready for git
13+ cd build/html
14+ git init
15+ git remote add origin $UPSTREAM
16+ git fetch origin gh-pages
17+ git checkout gh-pages
18+ git reset --hard origin/gh-pages
19+ rm -r *
20+
21+ # Make the new user guide
22+ cd ../..
23+ make html
24+
25+ # All done?
26+ if [ $# -lt 1 ]; then
27+ exit 0
28+ fi
29+
30+ # Optionally update the remote repo
31+ if [ $1 = " deploy" ]; then
32+ cd build/html
33+ git add .
34+ git commit -S -m " Docbot synching"
35+ git push -f origin gh-pages
36+ fi
Original file line number Diff line number Diff line change 1+ # release
2+
3+ Builds & deploys framework release.
4+
5+ ## Assumptions
6+
7+ ## Usage
8+
Original file line number Diff line number Diff line change 1+ # # Build and deploy framework release
2+
3+
4+
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ SPHINXOPTS =
66SPHINXBUILD = sphinx-build
77PAPER =
88BUILDDIR = build
9- GHBUILDDIR = ../../CodeIgniter4-guide
109
1110# Internal variables.
1211PAPEROPT_a4 = -D latex_paper_size=a4
@@ -129,9 +128,3 @@ doctest:
129128 $(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
130129 @echo " Testing of doctests in the sources finished, look at the " \
131130 " results in $( BUILDDIR) /doctest/output.txt."
132-
133- ghpages :
134- $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(GHBUILDDIR ) /html
135- @echo
136- @echo " Build finished. The HTML pages are in $( GHBUILDDIR) /html."
137-
You can’t perform that action at this time.
0 commit comments