Skip to content

Commit

Permalink
use source-watch partial build
Browse files Browse the repository at this point in the history
  • Loading branch information
djencks committed Dec 15, 2021
1 parent 7e67111 commit dcd5ecc
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 2,698 deletions.
7 changes: 0 additions & 7 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

This section contains the Kamelet catalog website, auto-generated from the source Kamelets.

To preview the website:

```
# From the /docs directory
yarn preview
```

## Generator

The generator tool has been moved in the /script/generator directory
16 changes: 0 additions & 16 deletions docs/antora-playbook.yml

This file was deleted.

20 changes: 20 additions & 0 deletions docs/local-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

CW=./../../camel-website
LOCAL=./../camel-kamelets

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-full
else
yarn build-partial
fi
18 changes: 0 additions & 18 deletions docs/package.json

This file was deleted.

8 changes: 8 additions & 0 deletions docs/source-map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- require: '@djencks/antora-source-map'
log_level: trace
source-map:
- url: 'https://github.com/apache/camel-kamelets.git'
mapped-url: './../camel-kamelets'
branches:
- branch: main
mapped-branch: main-collect
19 changes: 19 additions & 0 deletions docs/source-watch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- require: '@djencks/antora-source-watch'
# log_level: trace
sources:
- url: ./../camel-kamelets
component: camel-kamelets
version: next
# relativeIncludes: index.adoc
# relativeIncludes: avro-*.adoc

- 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'

0 comments on commit dcd5ecc

Please sign in to comment.