Skip to content

Commit

Permalink
local build v2
Browse files Browse the repository at this point in the history
  • Loading branch information
djencks committed Dec 30, 2021
1 parent 773504b commit ad0dc85
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 4,051 deletions.
36 changes: 0 additions & 36 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.
16 changes: 0 additions & 16 deletions docs/antora-playbook.yml

This file was deleted.

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

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

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

cd $CW || (echo 'camel-website not in expected location $CW' && exit)
./antora-local-build.sh $LOCAL $*
18 changes: 0 additions & 18 deletions docs/package.json

This file was deleted.

25 changes: 25 additions & 0 deletions docs/source-map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

- require: '@djencks/antora-source-map'
# log_level: trace
source-map:
- url: 'https://github.com/apache/camel-k.git'
mapped-url: './../camel-k'
branches:
- branch: release-1.7.x
mapped-branch: HEAD
23 changes: 23 additions & 0 deletions docs/source-watch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

- require: '@djencks/antora-source-watch'
# log_level: trace
sources:
- url: ./../camel-k
- url: https://github.com/apache/camel-k-runtime.git
branch_includes: release-1.10.x
Loading

0 comments on commit ad0dc85

Please sign in to comment.