Skip to content

Commit

Permalink
Fix documentation links
Browse files Browse the repository at this point in the history
  • Loading branch information
Clstroud committed Jul 13, 2023
1 parent fbe0525 commit 18ea865
Show file tree
Hide file tree
Showing 175 changed files with 470 additions and 455 deletions.
62 changes: 56 additions & 6 deletions Tools/generate_docs.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,68 @@
#!/bin/sh

DOCS_BASE_DIR="docs"
# cd to where this script lives, to avoid requiring it
# to be executed from a predefined place
SCRIPT_PATH=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
cd "${SCRIPT_PATH}"

cd ..
REPO_ROOT=$(cd ".."; pwd)
DOCS_ROOT="${REPO_ROOT}/docs"

rm -rf "${DOCS_BASE_DIR}"
mkdir -p "${DOCS_BASE_DIR}"
rm -rf "${DOCS_ROOT}"
mkdir -p "${DOCS_ROOT}"

# -----------------------
# BEGIN INDEX FILE
# -----------------------

INDEX_FILE="${DOCS_ROOT}/index.html"
BASE_URL="https://willowtreeapps.github.io"

echo '<!DOCTYPE html>' > "${INDEX_FILE}"
echo '<html>' >> "${INDEX_FILE}"
echo '<body>' >> "${INDEX_FILE}"


#
# AXComponentKit
#

cd "${REPO_ROOT}"

DOCS_AXCOMPONENTKIT_FRAMEWORK_RELATIVE="framework"
DOCS_AXCOMPONENTKIT_FRAMEWORK_ROOT="${DOCS_ROOT}/${DOCS_AXCOMPONENTKIT_FRAMEWORK_RELATIVE}"
DOCS_AXCOMPONENTKIT_FRAMEWORK_RELATIVE_URL_PATH="AXComponentKit/${DOCS_AXCOMPONENTKIT_FRAMEWORK_RELATIVE}"

mkdir -p "${DOCS_AXCOMPONENTKIT_FRAMEWORK_ROOT}"
echo " <a href=\"${BASE_URL}/${DOCS_AXCOMPONENTKIT_FRAMEWORK_RELATIVE_URL_PATH}/documentation/axcomponentkit\">AXComponentKit</a><br>" >> "${INDEX_FILE}"

xcodebuild clean docbuild \
-scheme AXComponentKit \
-destination generic/platform=iOS \
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path framework/ --output-path ${DOCS_BASE_DIR}/framework/"
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path ${DOCS_AXCOMPONENTKIT_FRAMEWORK_RELATIVE_URL_PATH} --output-path ${DOCS_AXCOMPONENTKIT_FRAMEWORK_ROOT}"

#
# AXComponentKitTestSupport
#

cd "${AXCOMPONENTKIT_PACKAGE_ROOT}"

DOCS_AXCOMPONENTKITTESTSUPPORT_RELATIVE="testing"
DOCS_AXCOMPONENTKITTESTSUPPORT_ROOT="${DOCS_ROOT}/${DOCS_AXCOMPONENTKITTESTSUPPORT_RELATIVE}"
DOCS_AXCOMPONENTKITTESTSUPPORT_RELATIVE_URL_PATH="AXComponentKit/${DOCS_AXCOMPONENTKITTESTSUPPORT_RELATIVE}"

mkdir -p "${DOCS_AXCOMPONENTKITTESTSUPPORT_ROOT}"
echo " <a href=\"${BASE_URL}/${DOCS_AXCOMPONENTKITTESTSUPPORT_RELATIVE_URL_PATH}/documentation/axcomponentkittestsupport\">AXComponentKit Test Support</a><br>" >> "${INDEX_FILE}"

xcodebuild clean docbuild \
-scheme AXComponentKitTestSupport \
-destination generic/platform=iOS \
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path testing/ --output-path ${DOCS_BASE_DIR}/testing/"
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path ${DOCS_AXCOMPONENTKITTESTSUPPORT_RELATIVE_URL_PATH} --output-path ${DOCS_AXCOMPONENTKITTESTSUPPORT_ROOT}"


# -----------------------
# FINALIZE INDEX FILE
# -----------------------

echo '</body>' >> "${INDEX_FILE}"
echo '</html>' >> "${INDEX_FILE}"
9 changes: 9 additions & 0 deletions docs/framework/css/chunk-384ef189.7ede1ea3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions docs/framework/css/documentation-topic.29351f99.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions docs/framework/css/documentation-topic.3bca6578.css

This file was deleted.

9 changes: 9 additions & 0 deletions docs/framework/css/documentation-topic~topic.fccbd76c.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

This file was deleted.

9 changes: 0 additions & 9 deletions docs/framework/css/index.12bb178a.css

This file was deleted.

9 changes: 9 additions & 0 deletions docs/framework/css/index.d5b499b0.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/framework/css/topic.726a35dc.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions docs/framework/css/topic.ee15af52.css

This file was deleted.

9 changes: 0 additions & 9 deletions docs/framework/css/tutorials-overview.06e8bcf7.css

This file was deleted.

9 changes: 9 additions & 0 deletions docs/framework/css/tutorials-overview.2a582c39.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/framework/data/documentation/axcomponentkit.json

Large diffs are not rendered by default.

Loading

0 comments on commit 18ea865

Please sign in to comment.