Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmbootstrap
Commits
d28174bf
Verified
Commit
d28174bf
authored
11 months ago
by
Robert Eckelmann
Committed by
Newbyte
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: add job to generate docs (MR 2266)
parent
974b76c0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2266
Documentation setup
Pipeline
#190842
passed
11 months ago
Stage: lint
Stage: test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.ci/docs.sh
+26
-0
26 additions, 0 deletions
.ci/docs.sh
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
with
37 additions
and
0 deletions
.ci/docs.sh
0 → 100755
+
26
−
0
View file @
d28174bf
#!/bin/sh -e
# Description: create documentation with sphinx
# Options: native
# https://postmarketos.org/pmb-ci
# Ensure sphinx_rtd_theme is installed
if
[
"
$(
id
-u
)
"
=
0
]
;
then
set
-x
apk
-q
add
\
py3-sphinx_rtd_theme
\
py3-sphinxcontrib-autoprogram
exec
su
"
${
TESTUSER
:-
build
}
"
-c
"sh -e
$0
"
fi
# Require sphinx to be installed on the host system
if
[
-z
"
$(
command
-v
sphinx-build
)
"
]
;
then
echo
"ERROR: sphinx-build command not found, make sure it is in your PATH."
exit
1
fi
sphinx-build
\
docs
\
public
\
# -E -a -v -T
This diff is collapsed.
Click to expand it.
.gitignore
+
1
−
0
View file @
d28174bf
...
...
@@ -19,6 +19,7 @@ __pycache__/
# Distribution / packaging
.Python
public/
env/
develop-eggs/
dist/
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
10
−
0
View file @
d28174bf
...
...
@@ -8,6 +8,7 @@ workflow:
-
if
:
$CI_PIPELINE_SOURCE == 'merge_request_event'
-
if
:
$CI_COMMIT_BRANCH == 'master'
-
if
:
$CI_COMMIT_BRANCH == 'wip'
-
if
:
$CI_COMMIT_BRANCH == 'docs'
before_script
:
&global_before_scripts
-
"
.ci/note.sh"
...
...
@@ -62,3 +63,12 @@ mypy:
stage
:
lint
script
:
-
"
.ci/mypy.sh"
docs
:
stage
:
lint
script
:
-
apk add py3-sphinx py3-sphinx_rtd_theme
-
"
.ci/docs.sh"
artifacts
:
paths
:
-
public
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment