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

chore: archival of version 0.25, part 3: manual steps #2167

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ea8618a
archiving: delete version version-0.26
pepopowitz Jun 2, 2023
442d458
archiving: delete version version-1.0
pepopowitz Jun 2, 2023
30026c6
archiving: delete version version-1.1
pepopowitz Jun 2, 2023
2f6a4c7
archiving: delete version version-1.2
pepopowitz Jun 2, 2023
3c4019c
archiving: delete version version-1.3
pepopowitz Jun 2, 2023
fb1dbb8
archiving: delete version version-8.0
pepopowitz Jun 2, 2023
a9a5c2f
archiving: delete version version-8.1
pepopowitz Jun 2, 2023
00423cd
archiving: delete version version-8.2
pepopowitz Jun 2, 2023
a8b3adf
archiving: delete version version-8.2
pepopowitz Jun 2, 2023
587045a
archiving: exclude all other versions from the version file
pepopowitz Jun 2, 2023
d28b398
archiving: prevent unsupported site from being crawled
pepopowitz Jun 2, 2023
38ab421
archiving: fix Dockerfile for local debugging
pepopowitz Jun 2, 2023
8abd64f
archiving: update docusaurus config to build only 0.25
pepopowitz Jun 2, 2023
bfb4071
archiving: update theme components
pepopowitz Jun 2, 2023
caf1152
archiving(CI): remove link-checking from build-docs workflow
pepopowitz Jun 2, 2023
5a991ee
archiving(CI): remove link-check workflow
pepopowitz Jun 2, 2023
9eacbb9
archiving(links): update or remove broken links
pepopowitz Jun 2, 2023
9d35da5
archiving(ci): remove the rest of the link-checking from build docs b…
pepopowitz Jun 2, 2023
8b1b224
archiving(config): use an icon that stands out in announcement bar
pepopowitz Jun 2, 2023
ebc5bfd
archiving(ci): update publish workflows to push to the right place
pepopowitz Jun 2, 2023
a466c4e
archiving(ci): run publish workflows at the correct time
pepopowitz Jun 2, 2023
3daaf78
archiving(ci): fix trigger for prod publish
pepopowitz Jun 2, 2023
9f3cba2
archiving(htaccess): update rewrite rules based on URL structure of i…
pepopowitz Jun 5, 2023
3024f8e
Merge branch 'unsupported/0.25' into pepopowitz/1173-archiving/isolat…
pepopowitz Jun 5, 2023
cb854ab
archiving(oops): put the tags-ignore back in, to prevent staging depl…
pepopowitz Jun 5, 2023
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 @@ -30,32 +30,3 @@ jobs:
run: npm run build
env:
NODE_OPTIONS: --max_old_space_size=4096
- 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/
Comment on lines -58 to -61
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is potentially controversial. The sitemap & product link checks are definitely not something we want to run, because this is an isolated site containing only one old version. But the internal links of the app is probably still worth checking, if it's not much work.

Unfortunately it isn't "not much work"! I'd have to alter the steps above that run the webserver to run the app in a /0.25 folder, or else the internal link-checking would fail because of the baseURL of /0.25.

My feeling is that it's fine to remove this link-checking. It's an unsupported version of the docs, and if an internal link gets broken over time, I think we just say forget it.

But if you feel strongly that I should get this internal link-checking working, let me know!!!

28 changes: 0 additions & 28 deletions .github/workflows/linkcheck.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/publish-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: publish-prod
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "0.25.[0-9]+"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the right way to do this? Trigger a 0.25 production build only when we create a 0.25.X release.

🚨 We'll have to make sure we update main to exclude the archived tags before we publish a 0.25.x release! Otherwise I think main will trigger a new prod publish, and deploy the 0.25 site to docs.camunda.io!!! (I think that's what would happen?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR to prevent accidental 0.25 deployment to docs.camunda.io is up, at #2172


permissions:
id-token: write
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
with:
switches: -avzr --delete
path: build/
remote_path: ${{ secrets.AWS_PROD_PUBLISH_PATH }}
remote_path: ${{ secrets.AWS_PROD_PUBLISH_PATH_UNSUPPORTED }}/0.25
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already added this new key to the project secrets (and to the Keeper record that contains these secrets).

remote_host: ${{ secrets.AWS_PROD_PUBLISH_HOST }}
remote_user: ${{ secrets.AWS_PROD_PUBLISH_USER }}
# vvvvv Intentionally missing the AWS_ prefix vvvvv
Expand Down
8 changes: 3 additions & 5 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/0.25"
pepopowitz marked this conversation as resolved.
Show resolved Hide resolved
tags-ignore:
- "*"

Expand All @@ -20,10 +20,8 @@ jobs:
node-version: 16
- name: Install Dependencies
run: npm ci
- name: Disable Indexing
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indexing is already disabled in the config itself.

run: "sed -i 's/noIndex: false/noIndex: true/g' docusaurus.config.js"
- 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'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New URLs

- name: Build
run: npm run build
env:
Expand All @@ -43,7 +41,7 @@ jobs:
with:
switches: -avzr --delete
path: build/
remote_path: ${{ secrets.AWS_STAGE_PUBLISH_PATH }}
remote_path: ${{ secrets.AWS_STAGE_PUBLISH_PATH_UNSUPPORTED }}/0.25
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already added this new key to the project secrets (and to the Keeper record that contains these secrets).

remote_host: ${{ secrets.AWS_STAGE_PUBLISH_HOST }}
remote_user: ${{ secrets.AWS_STAGE_PUBLISH_USER }}
# vvvvv Intentionally missing the AWS_ prefix vvvvv
Expand Down
93 changes: 20 additions & 73 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
const versionedLinks = require("./src/mdx/versionedLinks");

module.exports = {
title: "Camunda Platform 8 Docs",
tagline: "Documentation for all components of Camunda Platform 8",
// url: "https://camunda-cloud.github.io",
url: "https://docs.camunda.io",
url: "https://unsupported.docs.camunda.io",
// baseUrl: "/camunda-cloud-documentation/",
baseUrl: "/",
baseUrl: "/0.25/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favicon.ico",
Expand Down Expand Up @@ -34,35 +32,16 @@ module.exports = {
},
],
"./static/plugins/bpmn-js",
[
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No optimize docs for this version.

"@docusaurus/plugin-content-docs",
{
id: "optimize",
path: "optimize",
routeBasePath: "optimize",
beforeDefaultRemarkPlugins: [versionedLinks],
sidebarPath: require.resolve("./optimize_sidebars.js"),
editUrl: "https://github.com/camunda/camunda-platform-docs/edit/main/",
versions: {
"3.9.0": {
banner: "none",
},
"3.8.0": {
banner: "none",
},
},
},
],
],
scripts: [],
themeConfig: {
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 business processes today.',
backgroundColor: "#14D890",
textColor: "#000",
isCloseable: true,
'🚨 This version of Camunda Platform 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: {
additionalLanguages: ["java", "protobuf"],
Expand All @@ -75,7 +54,7 @@ module.exports = {
},
items: [
{
type: "docsVersionDropdown",
type: "docsVersion",
position: "left",
},
{
Expand All @@ -90,18 +69,6 @@ module.exports = {
label: "Components",
position: "left",
},
{
type: "doc",
docId: "apis-tools/working-with-apis-tools",
label: "APIs & Tools",
position: "left",
},
{
type: "doc",
docId: "self-managed/about-self-managed",
label: "Self-Managed",
position: "left",
},
{
type: "doc",
docId: "reference/overview",
Expand All @@ -127,7 +94,7 @@ module.exports = {
},
{
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 Down Expand Up @@ -185,7 +152,7 @@ module.exports = {
},
{
label: "Release cycle",
to: "docs/reference/release-policy",
to: "https://docs.camunda.io/docs/reference/release-policy",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are footer links. A few of these pages don't exist in the 0.25 site, so I pointed them at production instead.

},
],
},
Expand All @@ -201,11 +168,11 @@ module.exports = {
},
{
label: "Licenses",
to: "docs/reference/licenses",
to: "https://docs.camunda.io/docs/reference/licenses",
},
{
label: "Security notices",
to: "docs/reference/notices",
to: "https://docs.camunda.io/docs/reference/notices",
},
],
},
Expand All @@ -224,18 +191,14 @@ module.exports = {
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl:
"https://github.com/camunda/camunda-platform-docs/edit/main/",
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.
lastVersion: "0.25",
includeCurrentVersion: false,
versions: {
8.1: {
banner: "none",
},
"8.0": {
banner: "none",
0.25: {
label: "0.25",
path: "/",
noIndex: true,
banner: "unmaintained",
},
},
},
Expand All @@ -244,24 +207,8 @@ module.exports = {
customCss: require.resolve("./src/css/custom.css"),
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
ignorePatterns: [
"/docs/**/tags/**",
"/docs/next/**",
"/docs/0.25/**",
"/docs/0.26/**",
"/docs/1.0/**",
"/docs/1.1/**",
"/docs/1.2/**",
"/docs/1.3/**",
"/docs/8.0/**",
"/docs/8.1/**",
"/optimize/3.7.0/**",
"/optimize/3.8.0/**",
"/optimize/3.9.0/**",
"/optimize/next/**",
],
// exclude everything from sitemap
ignorePatterns: ["**"],
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ There are various channels where you can reach us.

- We welcome your **bug** reports and **feature requests** through our community channels mentioned above.

- For **security-related issues**, review our [Security notices](../docs/reference/notices) for the most up-to-date information on known issues and steps to report a vulnerability so we can solve the problem as quickly as possible. Do not use GitHub for security-related issues.
- For **security-related issues**, review our [Security notices](https://docs.camunda.io/docs/reference/notices) for the most up-to-date information on known issues and steps to report a vulnerability so we can solve the problem as quickly as possible. Do not use GitHub for security-related issues.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No page here in 0.25! It feels better to send them somewhere, since it's security stuff.


- **Feedback and Support** can be submitted or requested via JIRA for subscription or enterprise customers in the Support project. Otherwise, use the [Camunda Platform community forum](https://forum.camunda.io/). For more information about Enterprise support and additional support resources please see [Enterprise Support](https://camunda.com/support/).

Expand Down
39 changes: 2 additions & 37 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const features = [
{
title: "APIs & Tools",
imageUrl: "img/apisclients.png",
url: "/docs/apis-tools/working-with-apis-tools/",
url: "/docs/components/clients/build-your-own-client/",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the homepage features. This URL translates pretty well.

description: <>Programmatically interact with your automated processes.</>,
},
];
Expand All @@ -41,7 +41,7 @@ const features2 = [
{
title: "Self-Managed",
imageUrl: "img/self-managed.png",
url: "/docs/self-managed/about-self-managed/",
url: "/",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL has nothing related in 0.25! Instead of removing the entire feature block, because that makes it look funny, I left it in and pointed it at the home page. It's "unsupported" so that's safe????

description: (
<>
A self-hosted Camunda Platform 8 alternative, offering everything you
Expand Down Expand Up @@ -164,41 +164,6 @@ function Home() {
</div>
</section>
)}
<div className={clsx("hero hero--secondary", styles.heroBanner)}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of these three buttons have a 0.25 page! (Technically one of them does but it just says "TODO"!)

So I removed this whole green block.

<div className="container">
<h2 className="hero__title">Unsure where to begin?</h2>
<p className="hero__subtitle">Try one of our use case guides</p>
<div className={styles.buttons}>
<Link
className={clsx(
"button button--outline button--secondary button--lg button--hero get-started-use-case",
styles.getStarted
)}
to={useBaseUrl("docs/guides/orchestrate-microservices/")}
>
Microservice Orchestration
</Link>
<Link
className={clsx(
"button button--outline button--secondary button--lg button--hero get-started-use-case get-started-use-case-2",
styles.getStarted
)}
to={useBaseUrl("docs/guides/orchestrate-human-tasks/")}
>
Human Task Orchestration
</Link>
<Link
className={clsx(
"button button--outline button--secondary button--lg button--hero get-started-use-case get-started-use-case-2",
styles.getStarted
)}
to={useBaseUrl("docs/guides/orchestrate-api-endpoints/")}
>
API Endpoint Orchestration
</Link>
</div>
</div>
</div>
</main>
</Layout>
);
Expand Down
52 changes: 0 additions & 52 deletions src/theme/AnnouncementBar/index.js

This file was deleted.

Loading