mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
parent
fa610c6d88
commit
58fb559262
12
.github/workflows/kanidm_book.yml
vendored
12
.github/workflows/kanidm_book.yml
vendored
|
@ -26,17 +26,9 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --no-deps
|
|
||||||
- name: Copy developer readme into book
|
|
||||||
run: cp DEVELOPER_README.md ./kanidm_book/src/ && echo '- [Developer Guide](DEVELOPER_README.md)' >> ./kanidm_book/src/SUMMARY.md
|
|
||||||
|
|
||||||
- name: Run mdbook
|
- name: Run make book
|
||||||
run: mdbook build kanidm_book
|
run: make book
|
||||||
|
|
||||||
- name: Move files around
|
|
||||||
run: mv ./kanidm_book/book/ ./docs/ && mkdir -p ./docs/rustdoc/ && mv ./target/doc/* ./docs/rustdoc/
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,3 +15,4 @@ todo.sh
|
||||||
vendor.tar.*
|
vendor.tar.*
|
||||||
*.patch
|
*.patch
|
||||||
orca/example_profiles/small/orca-edited.toml
|
orca/example_profiles/small/orca-edited.toml
|
||||||
|
docs/
|
||||||
|
|
15
Makefile
15
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: help build/kanidmd build/radiusd test/kanidmd push/kanidmd push/radiusd vendor-prep doc install-tools prep vendor
|
.PHONY: help build/kanidmd build/radiusd test/kanidmd push/kanidmd push/radiusd vendor-prep doc install-tools prep vendor book clean_book
|
||||||
|
|
||||||
IMAGE_BASE ?= kanidm
|
IMAGE_BASE ?= kanidm
|
||||||
IMAGE_VERSION ?= devel
|
IMAGE_VERSION ?= devel
|
||||||
|
@ -6,6 +6,8 @@ EXT_OPTS ?=
|
||||||
IMAGE_ARCH ?= "linux/amd64,linux/arm64"
|
IMAGE_ARCH ?= "linux/amd64,linux/arm64"
|
||||||
ARGS ?= --build-arg "SCCACHE_REDIS=redis://172.24.20.4:6379"
|
ARGS ?= --build-arg "SCCACHE_REDIS=redis://172.24.20.4:6379"
|
||||||
|
|
||||||
|
BOOK_VERSION ?= master
|
||||||
|
|
||||||
.DEFAULT: help
|
.DEFAULT: help
|
||||||
help:
|
help:
|
||||||
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/\n\t/'
|
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/\n\t/'
|
||||||
|
@ -70,6 +72,17 @@ doc: ## build doc local
|
||||||
doc:
|
doc:
|
||||||
cargo doc --document-private-items
|
cargo doc --document-private-items
|
||||||
|
|
||||||
|
book:
|
||||||
|
cargo doc --no-deps
|
||||||
|
mdbook build kanidm_book
|
||||||
|
mv ./kanidm_book/book/ ./docs/
|
||||||
|
mkdir -p ./docs/rustdoc/${BOOK_VERSION}
|
||||||
|
mv ./target/doc/* ./docs/rustdoc/${BOOK_VERSION}/
|
||||||
|
|
||||||
|
clean_book:
|
||||||
|
rm -rf ./docs
|
||||||
|
|
||||||
|
|
||||||
install-tools: ## install tools in local environment
|
install-tools: ## install tools in local environment
|
||||||
install-tools:
|
install-tools:
|
||||||
cd kanidm_tools && cargo install --path . --force
|
cd kanidm_tools && cargo install --path . --force
|
||||||
|
|
1
kanidm_book/src/DEVELOPER_README.md
Symbolic link
1
kanidm_book/src/DEVELOPER_README.md
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../DEVELOPER_README.md
|
|
@ -20,3 +20,4 @@
|
||||||
- [RADIUS](./radius.md)
|
- [RADIUS](./radius.md)
|
||||||
- [LDAP](./ldap.md)
|
- [LDAP](./ldap.md)
|
||||||
- [Why TLS?](./why_tls.md)
|
- [Why TLS?](./why_tls.md)
|
||||||
|
- [Developer Guide](DEVELOPER_README.md)
|
||||||
|
|
|
@ -15,7 +15,7 @@ The intent of the Kanidm project is to:
|
||||||
|
|
||||||
## Library documentation
|
## Library documentation
|
||||||
|
|
||||||
Looking for the `rustdoc` documentation for the libraries themselves? [Click here!](./rustdoc/kanidm/)
|
Looking for the `rustdoc` documentation for the libraries themselves? [Click here!](./rustdoc/master/kanidm/)
|
||||||
|
|
||||||
## Why do I want Kanidm?
|
## Why do I want Kanidm?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue