fix drone
This commit is contained in:
1 parent
9dbf52d52e
commit
01a7abac22
5 files changed
+26
-14
No files matched your search
@@ -162,16 +162,30 @@ clean:
|
||||
.PHONY: docs-generate
|
||||
docs-generate:
|
||||
# empty the folders first to only have files that are generated without remnants
|
||||
find docs/services/_includes/ -type f \( -name "*" ! -name ".git*" ! -name "_*" \) -delete || exit 1
|
||||
find docs/services/_includes/ -type f \( -name "*" ! -name ".git*" \) -delete || exit 1
|
||||
|
||||
# generate the services md files for dev docs
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod docs-generate || exit 1; \
|
||||
done
|
||||
$(MAKE) --no-print-directory -C $$mod docs-generate || exit 1; \
|
||||
done
|
||||
|
||||
# generate envvar adoc and md tables for dev and admin docs
|
||||
$(MAKE) --no-print-directory -C docs docs-generate || exit 1
|
||||
|
||||
# only copy all added/removed/deprecated files that have been created for a release + .gitkeep
|
||||
# note that files are locally ignored via _include/.gitignore for pushing, but required by the drone process
|
||||
# for markdown, if e.g. an `_index.md` file would be present containing links, hugo thinks it must render and fails
|
||||
# the -I flag followed by % cp % means that all passed arguments will concatenated to the last %
|
||||
find docs/services/general-info/envvars/env-var-deltas/ -type f \( -name ".gitkeep" -o -name "*-added.*" -o -name "*-removed.*" -o -name "*-deprecated.*" \) | xargs -I % cp % docs/services/_includes/adoc/env-var-deltas/
|
||||
|
||||
.PHONY: docs-drone-test
|
||||
# imitate a full drone run to build docs without pushing to the web.
|
||||
# this can help identify uncaught issues when running `make -C docs docs-serve` only.
|
||||
docs-drone-test:
|
||||
$(MAKE) --no-print-directory docs-generate
|
||||
$(MAKE) --no-print-directory -C docs docs-copy
|
||||
$(MAKE) --no-print-directory -C docs test
|
||||
|
||||
$(MAKE) --no-print-directory -C docs docs-generate || exit 1
|
||||
# .adoc for admin docs, .md for dev docs
|
||||
cp docs/services/general-info/envvars/env-var-deltas/*.adoc docs/services/_includes/adoc/env-var-deltas/
|
||||
cp docs/services/general-info/envvars/env-var-deltas/*.md docs/services/_includes/adoc/env-var-deltas/
|
||||
|
||||
.PHONY: check-env-var-annotations
|
||||
check-env-var-annotations:
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
*_configvars.md
|
||||
*-example.yaml
|
||||
adoc/*adoc
|
||||
adoc/env-var-deltas/*adoc
|
||||
adoc/*.adoc
|
||||
adoc/env-var-deltas/*.adoc
|
||||
adoc/env-var-deltas/*.md
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
GeekdocHidden: true
|
||||
---
|
||||
@@ -1,2 +1,2 @@
|
||||
!**/_index.md
|
||||
!_index.md
|
||||
|
||||
@@ -23,7 +23,7 @@ To create the changed envvar tables, you must proceed the following steps in ord
|
||||
This is only required when converting adoc to markdown tables but it is highly recommended to show them in the dev docs too!
|
||||
|
||||
1. Run `make -C docs docs-generate` from the ocis root.\
|
||||
A file named `env_vars.yaml` is generated. Check for validity. If issues are found, fix them in the service sources first which need to be merged before you rerun make. For details how to do so, see [Maintain the 'env_vars.yaml' File]({{< ref "../new-release-process.md/#maintain-the-env_varsyaml-file" >}}). Any delta information is based on an actual `env_vars.yaml` file which is pulled **from master** by the python script described below!
|
||||
A file named `env_vars.yaml` is generated. Check for validity. If issues are found, fix them in the service sources first which need to be merged before you rerun make. For details how to do so, see [Maintain the 'env_vars.yaml' File]({{< ref "../new-release-process.md#maintain-the-env_varsyaml-file" >}}). Any delta information is based on an actual `env_vars.yaml` file which is pulled **from master** by the python script described below!
|
||||
|
||||
1. Configure the Python script `docs/helpers/changed_envvars.py` variables for the new version.\
|
||||
Note that you **must** use semver and not code names!
|
||||
|
||||
Reference in new issue
Block a user