Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions site/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ help: # Show help for each of the Makefile recipes.
serve: # Clean, build, and run the docs site locally.
dev/serve.sh

.PHONY: serve-local
serve-local: # Clean, build, and run the docs site locally using local docs.
dev/serve.sh --local

.PHONY: build
build: # Clean and build the docs site locally.
dev/build.sh
Expand Down
15 changes: 15 additions & 0 deletions site/dev/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,21 @@ pull_versioned_docs () {
create_nightly
}

# Sets up local worktrees for the documentation and performs operations related to different versions.
pull_local_docs () {
echo " --> pull local docs (fast local mode)"

mkdir -p docs/docs
mkdir -p docs/javadoc

# Retrieve the latest version of documentation for processing
local latest_version=$(get_latest_version)
echo "Latest version is: ${latest_version}"

# Only create the 'nightly' version in local mode, skip 'latest' for speed
create_nightly
}

# Cleans up artifacts and temporary files generated during documentation management.
clean () {
echo " --> clean"
Expand Down
2 changes: 1 addition & 1 deletion site/dev/serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

set -e

./dev/setup_env.sh
./dev/setup_env.sh "$1"

mkdocs serve --dirty --watch .
6 changes: 5 additions & 1 deletion site/dev/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ clean

install_deps

pull_versioned_docs
if [ "$1" == "--local" ]; then
pull_local_docs
else
pull_versioned_docs
fi

git show "${REMOTE}/main:../.asf.yaml" > docs/.asf.yaml