Skip to content

Commit

Permalink
update to docs local build v2
Browse files Browse the repository at this point in the history
  • Loading branch information
djencks committed Dec 30, 2021
1 parent daa03c9 commit a9a04f9
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 21,863 deletions.
16,485 changes: 0 additions & 16,485 deletions docs/.pnp.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/.yarnrc.yml

This file was deleted.

50 changes: 0 additions & 50 deletions docs/README.adoc

This file was deleted.

22 changes: 22 additions & 0 deletions docs/README_local_build.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
= Local/partial build of docs

See https://camel.apache.org/manual/improving-the-documentation.html for initial setup instructions and more details.

After initial setup, there are three local build options:

== Quick: `./local-build.sh quick`

This will build this project only.
Links out of this component will go to the published Camel website, and there will be no links back.
This is primarily intended to check for errors.

== Full: `./local-build.sh full`

This will build the full site locally, with your changes in this project.
Running this (at least) once is a prerequisite for the partial build.
This should show the site exactly as it would be should your changes be merged.

== Partial: `./local-build.sh`

This will build this project only, replacing this component in the locally built "full" build, and start a local server to view with, rebuild the project when file changes are detected, and sync your browser with the rebuilt site.
This is intended for documentation development.
3 changes: 0 additions & 3 deletions docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ asciidoc:
# attributes used in xrefs to other Antora components
cq-camel-components: 3.14.x@components # replace ${camel.docs.components.xref}
quarkus-examples-version: latest
# indexTable common
indexer-version: 3.14.x # replace ${camel.docs.components.version}
indexer-component: camel-quarkus
3 changes: 0 additions & 3 deletions docs/bs-config.json

This file was deleted.

15 changes: 1 addition & 14 deletions docs/local-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,4 @@ CW=./../../camel-website
LOCAL=./../camel-quarkus

cd $CW || (echo 'camel-website not in expected location $CW' && exit)
cp antora-playbook.yml local-antora-playbook-full.yml
cat $LOCAL/docs/source-map.yml >> local-antora-playbook-full.yml
cat playbook-patch-full.yml >> local-antora-playbook-full.yml

cp antora-playbook.yml local-antora-playbook-partial.yml
cat $LOCAL/docs/source-map.yml >> local-antora-playbook-partial.yml
cat $LOCAL/docs/source-watch.yml >> local-antora-playbook-partial.yml

if [ "$1" = "full" ] || [ "$1" = "1" ]
then
yarn build:antora-local-full
else
yarn build:antora-local-partial
fi
./antora-local-build.sh $LOCAL $*
25 changes: 0 additions & 25 deletions docs/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions docs/source-watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,3 @@
sources:
- url: ./../camel-quarkus
- url: https://github.com/apache/camel-quarkus-examples.git

- require: "@djencks/antora-site-manifest"
import-manifests:
- primary-site-manifest-url: ./documentation/site-manifest.json
partial-components: true
local-urls: true

- require: '@djencks/antora-timer'
log_level: info

generator: '@djencks/antora-source-watch'
103 changes: 0 additions & 103 deletions docs/util/jsonpath-util.js

This file was deleted.

Loading

0 comments on commit a9a04f9

Please sign in to comment.