Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archive(1.3) isolation: remove all other versions, pt 2: reviewable #4485

Open
wants to merge 12 commits into
base: unsupported/1.3
Choose a base branch
from
Open
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
29 changes: 0 additions & 29 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,3 @@ jobs:
run: npm run build
env:
NODE_OPTIONS: --max_old_space_size=8192
- name: Remove https redirect
run: |
sed -i '/SERVER_PORT/d;/SERVER_NAME/d' build/.htaccess
- name: Run web server
run: |
docker run -d --name webserver -v "$PWD/build":/app -p 8888:8080 bitnami/apache:2.4.54
echo "container_ip=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' webserver)" >> $GITHUB_ENV
- name: Download sitemap from production
run: curl -sL https://docs.camunda.io/sitemap.xml | grep -oP '<loc>\K.*?(?=</loc>)' | sed "s!https://docs.camunda.io!http://${{ env.container_ip }}:8080!g" > sitemap.prod.txt
- name: Prepare product links
run: grep 'https://docs.camunda.io' product-links.txt | sed "s!https://docs.camunda.io!http://${{ env.container_ip }}:8080!g" > product-links.prod.txt
- name: Waiting for URL available
uses: nev7n/wait_for_response@v1
with:
url: "http://${{ env.container_ip }}:8080/"
- name: Validate sitemap links
uses: lycheeverse/lychee-action@v1.6.1
with:
args: "sitemap.prod.txt"
fail: true
- name: Validate product links
uses: lycheeverse/lychee-action@v1.6.1
with:
args: "product-links.prod.txt"
fail: true
- name: Check internal links
uses: untitaker/hyperlink@0.1.27
with:
args: build/
12 changes: 2 additions & 10 deletions .github/workflows/publish-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@ name: publish-prod
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "!0.25.[0-9]+"
- "!0.26.[0-9]+"
- "!1.0.[0-9]+"
- "!1.1.[0-9]+"
- "!1.2.[0-9]+"
- "!1.3.[0-9]+"
- "!8.0.[0-9]+"
- "!8.1.[0-9]+"
- "1.3.[0-9]+"

permissions:
id-token: write
Expand Down Expand Up @@ -47,7 +39,7 @@ jobs:
with:
switches: -avzr --delete
path: build/
remote_path: ${{ secrets.AWS_PROD_PUBLISH_PATH }}
remote_path: ${{ secrets.AWS_PROD_PUBLISH_PATH_UNSUPPORTED }}/1.3
remote_host: ${{ secrets.AWS_PROD_PUBLISH_HOST }}
remote_user: ${{ secrets.AWS_PROD_PUBLISH_USER }}
# vvvvv Intentionally missing the AWS_ prefix vvvvv
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: publish-stage
on:
push:
branches:
- "main"
- "unsupported/1.3"
tags-ignore:
- "*"

Expand All @@ -23,7 +23,7 @@ jobs:
- name: Cache Docusaurus
uses: ./.github/actions/docusaurus-cache
- name: Update URL
run: 'sed -i ''s!url: "https://docs.camunda.io"!url: "https://stage.docs.camunda.io"!g'' docusaurus.config.js'
run: 'sed -i ''s!url: "https://unsupported.docs.camunda.io"!url: "https://stage.unsupported.docs.camunda.io"!g'' docusaurus.config.js'
- name: Update redirects for environment
run: "sed -i 's!https://unsupported.docs.camunda.io!https://stage.unsupported.docs.camunda.io!g' ./static/.htaccess"
- name: Build
Expand All @@ -45,7 +45,7 @@ jobs:
with:
switches: -avzr --delete
path: build/
remote_path: ${{ secrets.AWS_STAGE_PUBLISH_PATH }}
remote_path: ${{ secrets.AWS_STAGE_PUBLISH_PATH_UNSUPPORTED }}/1.3
remote_host: ${{ secrets.AWS_STAGE_PUBLISH_HOST }}
remote_user: ${{ secrets.AWS_STAGE_PUBLISH_USER }}
# vvvvv Intentionally missing the AWS_ prefix vvvvv
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
FROM httpd:alpine

RUN rm -r /usr/local/apache2/htdocs/*
COPY /build /usr/local/apache2/htdocs/
COPY /build /usr/local/apache2/htdocs/1.3/

# Remove SSL requirement
RUN sed -i \
'/SERVER_PORT/d;/SERVER_NAME/d' \
/usr/local/apache2/htdocs/.htaccess
/usr/local/apache2/htdocs/1.3/.htaccess

# Enable the rewrite module
RUN sed -i \
Expand Down
107 changes: 25 additions & 82 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ module.exports = {
tagline:
"Start orchestrating your processes with Camunda 8 SaaS or Self-Managed.",
// url: "https://camunda-cloud.github.io",
url: process.env.DOCS_SITE_URL || "https://docs.camunda.io",
url: process.env.DOCS_SITE_URL || "https://unsupported.docs.camunda.io",
// baseUrl: "/camunda-cloud-documentation/",
baseUrl: process.env.DOCS_SITE_BASE_URL || "/",
customFields: {
canonicalUrlRoot: "https://docs.camunda.io",
canonicalUrlRoot: "https://unsupported.docs.camunda.io",
},
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
Expand Down Expand Up @@ -41,23 +41,14 @@ module.exports = {
path: "optimize",
routeBasePath: "optimize",
beforeDefaultRemarkPlugins: [versionedLinks],
sidebarPath: require.resolve("./optimize_sidebars.js"),
editUrl: "https://github.com/camunda/camunda-docs/edit/main/",
lastVersion: "3.7.0",
includeCurrentVersion: false,
versions: {
"3.14.0": {
label: "8.6 / 3.14.0",
},
"3.13.0": {
label: "8.5 / 3.13.0",
banner: "none",
},
"3.12.0": {
label: "8.4 / 3.12.0",
banner: "none",
},
"3.11.0": {
label: "8.3 / 3.11.0",
banner: "none",
"3.7.0": {
label: "3.7.0",
path: "/",
noIndex: true,
banner: "unmaintained",
},
},
},
Expand Down Expand Up @@ -177,10 +168,10 @@ module.exports = {
announcementBar: {
id: "camunda8",
content:
'📣 <b><a target="_blank" rel="noopener noreferrer" href="https://signup.camunda.com/accounts?utm_source=docs.camunda.io&utm_medium=referral&utm_content=banner">Sign up</a></b> for a free account to start orchestrating your business processes today.',
backgroundColor: "#14D890",
textColor: "#000",
isCloseable: true,
'🚨 This version of Camunda 8 is no longer actively maintained. For up-to-date documentation, see <b><a target="_blank" rel="noopener noreferrer" href="https://docs.camunda.io">the latest version</a></b>.',
backgroundColor: "#FFC600",
textColor: "#434343",
isCloseable: false,
},

prism: {
Expand All @@ -194,23 +185,8 @@ module.exports = {
},
items: [
{
type: "docsVersionDropdown",
type: "docsVersion",
position: "left",
dropdownItemsAfter: [
{
type: "html",
value: '<hr class="dropdown-separator">',
},
{
type: "html",
className: "dropdown-unsupported-versions",
value: "<b>Unsupported versions</b>",
},
...unsupportedVersions.map((version) => ({
label: version.label,
href: `https://unsupported.docs.camunda.io/${version.urlSuffix}/`,
})),
],
},
{
type: "doc",
Expand Down Expand Up @@ -259,13 +235,9 @@ module.exports = {
label: "How to use our docs",
to: "meta",
},
{
label: "Camunda Help Center",
to: "docs/reference/camunda-help-center",
},
{
label: "Try free",
href: "https://signup.camunda.com/accounts?utm_source=docs.camunda.io&utm_medium=referral&utm_content=footer",
href: "https://signup.camunda.com/accounts?utm_source=unsupported.docs.camunda.io&utm_medium=referral&utm_content=footer",
},
{
label: "Contact",
Expand All @@ -277,7 +249,7 @@ module.exports = {
title: "Community",
items: [
{
html: `<a href="https://twitter.com/camunda" target="_blank" rel="noreferrer noopener"><img src= "/img/twitter.svg" alt="Camunda on Twitter" class="footer-logos" /></a> <a href="https://github.com/camunda" target="_blank" rel="noreferrer noopener"><img src= "/img/github-mark-white.svg" alt="Camunda on GitHub" class="footer-logos" /></a>`,
html: `<a href="https://twitter.com/camunda" target="_blank" rel="noreferrer noopener"><img src="/1.3/img/twitter.svg" alt="Camunda on Twitter" class="footer-logos" /></a> <a href="https://github.com/camunda" target="_blank" rel="noreferrer noopener"><img src="/1.3/img/github-mark-white.svg" alt="Camunda on GitHub" class="footer-logos" /></a>`,
},
{
label: "Forum",
Expand Down Expand Up @@ -341,12 +313,6 @@ module.exports = {
],
copyright: `Copyright © ${new Date().getFullYear()} Camunda`,
},
algolia: {
// These keys are for our new standalone algolia instance!
apiKey: "d701d38126d1a43866047d3ab97680d1",
appId: "6KYF3VMCXZ",
indexName: "camunda",
},
languageTabs: [
{
highlight: "bash",
Expand Down Expand Up @@ -408,48 +374,25 @@ module.exports = {
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl: "https://github.com/camunda/camunda-docs/edit/main/",
lastVersion: "1.3",
includeCurrentVersion: false,
beforeDefaultRemarkPlugins: [versionedLinks],
// 👋 When cutting a new version, remove the banner for maintained versions by adding an entry. Remove the entry to versions >18 months old.
versions: {
8.5: {
banner: "none",
},
8.4: {
banner: "none",
},
8.3: {
banner: "none",
1.3: {
label: "1.3",
path: "/",
noIndex: true,
banner: "unmaintained",
},
},
docLayoutComponent: "@theme/DocPage",
docItemComponent: "@theme/ApiItem",
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
ignorePatterns: [
"/docs/**/assets/**",
"/docs/**/tags/**",
"/docs/next/**",
"/docs/1.3/**",
"/docs/8.2/**",
"/docs/8.3/**",
"/docs/8.4/**",
"/docs/8.5/**",
"/optimize/3.7.0/**",
"/optimize/3.10.0/**",
"/optimize/3.11.0/**",
"/optimize/3.12.0/**",
"/optimize/3.13.0/**",
"/optimize/next/**",
],
// exclude everything from sitemap
ignorePatterns: ["**"],
},
},
],
Expand Down
Loading
Loading