Skip to content

Conversation

@ebembi-crdb
Copy link
Contributor

Summary

Archives CockroachDB v2.1 documentation following the established v19.2 pattern. This removes
outdated documentation while preserving the release page with proper archived notice and
support policy links.

Changes Made

🗂️ Core Archival

  • Deleted v2.1 documentation directory - Removed entire /v2.1/ folder with all
    version-specific docs
  • Deleted v2.1 images - Removed /images/v2.1/ directory
  • Removed sidebar navigation - Deleted sidebar-data-v2.1.json to disable sidebar on
    archived page
  • Deleted include files - Removed _includes/v2.1/ and _includes/releases/v2.1/
    directories

🔗 Cross-Version Reference Fixes (78+ references)

  • Fixed v2.0 app tutorials - Replaced {% include v2.1/client-transaction-retry.md %}
    with inline transaction retry content
  • Consolidated shared images - Moved IntelliJ, DBeaver, and Kubernetes images to
    images/common/ directories
  • Updated 41 IntelliJ references - Changed all IntelliJ image paths across v19.1-v25.4 to
    use common directory
  • Fixed external URLs - Updated docs.cockroachlabs.com/docs/v2.1/ links to point to
    stable docs
  • Corrected upgrade paths - Fixed v19.1 upgrade references to point to current stable
    version

📄 Release Page Updates

  • Converted to archived format - Changed releases/v2.1.md from dynamic content to static
    archived notice
  • Added complete anchor coverage - Included all 27 v2.1 release anchors (#v2-1-0 through
    #v2-1-11, plus alpha/beta/RC variants) to prevent broken links from unsupported-versions
    page
  • Preserved link integrity - Maintains all external links to v2.1 release fragments

Validation

  • Jekyll builds successfully - No liquid template errors
  • htmltest passes 100% - All 9,369 documents tested with 0 errors
  • No broken links - All hash fragments and cross-references properly resolved
  • Follows v19.2 pattern - Page exists but shows archived notice without sidebar
    navigation

Impact

  • Repository cleanup: 385 files changed, removing 30,498 lines of outdated content
  • Improved maintainability: Eliminates need to maintain v2.1-specific documentation
  • User experience: Clear archived status with links to release support policy and archived
    downloads
  • Link preservation: All existing external links to v2.1 releases continue to work

ebembi-crdb added 3 commits November 18, 2025 12:15
- Delete v2.1 directory and images
- Remove sidebar-data-v2.1.json to disable sidebar navigation
- Delete _includes/v2.1/ and _includes/releases/v2.1/ directories
- Update releases/v2.1.md to archived format with support policy links
- Add all 27 v2.1 release anchors to prevent broken links from unsupported-versions page
- Fix 78+ cross-version references pointing to v2.1:
  - Replace v2.1 include references with inline content in v2.0 tutorials
  - Move DBeaver and Kubernetes images to images/common/ directory
  - Update all IntelliJ image references to use images/common/intellij/
  - Replace v2.1 URLs with stable docs links
- Archive follows v19.2 pattern: page exists but shows archived notice
- htmltest passes 100% with all 9,369 documents tested
Only archive v2.1 documentation, keep Gemfile unchanged
@github-actions
Copy link

Files changed:

  • src/current/_includes/releases/v19.1/v2.2.0-alpha.20181119.md:
  • src/current/_includes/releases/v19.1/v2.2.0-alpha.20190211.md:
  • src/current/_includes/releases/v2.0/v2.0.3.md:
  • src/current/_includes/releases/v2.1/v2.1.0-alpha.20180416.md:
  • src/current/_includes/releases/v2.1/v2.1.0-alpha.20180507.md:
  • src/current/_includes/releases/v2.1/v2.1.0-alpha.20180604.md:
  • src/current/_includes/releases/v2.1/v2.1.0-alpha.20180702.md:
  • src/current/_includes/releases/v2.1/v2.1.0-alpha.20180730.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20180827.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20180904.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20180910.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20180917.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20180924.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20181001.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20181008.md:
  • src/current/_includes/releases/v2.1/v2.1.0-beta.20181015.md:
  • src/current/_includes/releases/v2.1/v2.1.0-rc.1.md:
  • src/current/_includes/releases/v2.1/v2.1.0-rc.2.md:
  • src/current/_includes/releases/v2.1/v2.1.0.md:
  • src/current/_includes/releases/v2.1/v2.1.1.md:
  • src/current/_includes/releases/v2.1/v2.1.10.md:
  • src/current/_includes/releases/v2.1/v2.1.11.md:
  • src/current/_includes/releases/v2.1/v2.1.2.md:
  • src/current/_includes/releases/v2.1/v2.1.3.md:
  • src/current/_includes/releases/v2.1/v2.1.4.md:
  • src/current/_includes/releases/v2.1/v2.1.5.md:
  • src/current/_includes/releases/v2.1/v2.1.6.md:
  • src/current/_includes/releases/v2.1/v2.1.7.md:
  • src/current/_includes/releases/v2.1/v2.1.8.md:
  • src/current/_includes/releases/v2.1/v2.1.9.md:
  • src/current/_includes/sidebar-data-v2.1.json
  • src/current/_includes/v2.0/orchestration/kubernetes-prometheus-alertmanager.md:
  • src/current/_includes/v2.1/admin-ui-custom-chart-debug-page-00.html:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/BasicSample.java:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/TxnSample.java:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/activerecord-basic-sample.rb:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.c:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.clj:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.cpp:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.cs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.go:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.js:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.php:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.py:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.rb:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/basic-sample.rs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/before-you-begin.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/common-steps.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/create-maxroach-user-and-bank-database.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/gorm-basic-sample.go:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/hibernate-basic-sample/Sample.java:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/hibernate-basic-sample/build.gradle:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/hibernate-basic-sample/hibernate-basic-sample.tgz:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/hibernate-basic-sample/hibernate.cfg.xml:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/BasicSample.java:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/TxnSample.java:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/activerecord-basic-sample.rb:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/basic-sample.cs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/basic-sample.go:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/basic-sample.js:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/basic-sample.php:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/basic-sample.py:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/basic-sample.rb:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/basic-sample.rs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/create-maxroach-user-and-bank-database.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/gorm-basic-sample.go:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/hibernate-basic-sample/Sample.java:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/hibernate-basic-sample/build.gradle:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/hibernate-basic-sample/hibernate-basic-sample.tgz:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/hibernate-basic-sample/hibernate.cfg.xml:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/sequelize-basic-sample.js:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/txn-sample.cs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/txn-sample.go:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/txn-sample.js:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/txn-sample.php:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/txn-sample.py:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/txn-sample.rb:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/insecure/txn-sample.rs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/project.clj:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/see-also-links.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/sequelize-basic-sample.js:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/sqlalchemy-basic-sample.py:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/sqlalchemy-large-txns.py:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.clj:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.cpp:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.cs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.go:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.js:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.php:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.py:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.rb:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/txn-sample.rs:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/app/util.clj:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/client-transaction-retry.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/computed-columns/add-computed-column.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/computed-columns/convert-computed-column.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/computed-columns/jsonb.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/computed-columns/partitioning.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/computed-columns/secondary-index.md:
    • Warning: include not used in any v2.1 file or include
  • src/current/_includes/v2.1/computed-columns/simple.md:
    • Warning: include not used in any v2.1 file or include

@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit c1ea77e
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/691dc848bcb60e0008a06b1a

@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit c1ea77e
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/691dc848656cec0008a1db7d

@netlify
Copy link

netlify bot commented Nov 18, 2025

Netlify Preview

Name Link
🔨 Latest commit c1ea77e
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/691dc8488fab110008f83d12
😎 Deploy Preview https://deploy-preview-21195--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…est config

The sidebar_htmltest.rb plugin was generating HTML test files for all
versions, including those marked as ignored in .htmltest.yml. This
caused htmltest failures for archived versions that have sidebar-data
files but include CockroachCloud links that don't exist.

Changes:
- Read .htmltest.yml to identify ignored version directories
- Skip generating sidebar HTML test files for ignored versions
- Add logging to show which versions are being skipped

This ensures that only versions actually tested by htmltest have
corresponding sidebar test files generated.
Copy link
Contributor

@rmloveland rmloveland left a comment

Choose a reason for hiding this comment

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

This is great overall! We're very close, please:

  • Remove the LLM-generated script that hacks some SSL settings
  • Remove the newly introduced cross-version links in some of the later versions
  • Add the zip archive of v2.1 to the 'Archived Documentation' page - right now it's missing. Although if you prefer to do that in another PR that also works

ignored_versions = ignored_dirs.map do |dir|
match = dir.match(/\^?docs\/?(v\d+\.\d+)/)
match[1] if match
end.compact
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting, I don't think end.compact is valid Ruby syntax, but it does pass ruby -c 🤔

@@ -0,0 +1,27 @@
require "openssl"
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this, it doesn't belong in src/current - if there's a scripts directory somewhere you want to stash this away in for the EduEng team to use that's totally fine ofc. This looks like LLM noise to silence an SSL error

{% for r in rel %}
{% include releases/{{ page.major_version }}/{{ r.release_name }}.md release=r.release_name release_date=r.release_date %}
{% endfor %}
To download the archived documentation for this release, see [Archived Documentation]({% link releases/archived-documentation.md %}).
Copy link
Contributor

Choose a reason for hiding this comment

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

When I look at the rendered preview of the 'Archived Documentation' page v2.1 is not there. Do you still need to make the zip archive and upload it and then edit that page to add a link? Or were you planning to do that in a separate PR?

@@ -31,17 +31,17 @@ To work through this tutorial, take the following steps:

Start DBeaver, and select **Database > New Connection** from the menu. In the dialog that appears, select **CockroachDB** from the list.

<img src="{{ 'images/v2.1/dbeaver-01-select-cockroachdb.png' | relative_url }}" alt="DBeaver - Select CockroachDB" style="border:1px solid #eee;max-width:100%" />
<img src="{{ 'images/v23.1/dbeaver-01-select-cockroachdb.png' | relative_url }}" alt="DBeaver - Select CockroachDB" style="border:1px solid #eee;max-width:100%" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't introduce more cross version links. The right fix is to link to images/v21.1/dbeaver-01-select-cockroachdb.png - if it's not there, please create that folder and copy that image there.


## Step 2. Update the connection settings

On the **Create new connection** dialog that appears, click **Network settings**.

<img src="{{ 'images/v2.1/dbeaver-02-cockroachdb-connection-settings.png' | relative_url }}" alt="DBeaver - CockroachDB connection settings" style="border:1px solid #eee;max-width:100%" />
<img src="{{ 'images/v23.1/dbeaver-02-cockroachdb-connection-settings.png' | relative_url }}" alt="DBeaver - CockroachDB connection settings" style="border:1px solid #eee;max-width:100%" />
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment here re: please don't introduce new cross-version links. I don't want to leave a comment on every single instance in this PR, please check with grep or similar to make sure we're not adding more cross-version links to other versions. The right fix for these instances is in my previous comment

@@ -32,17 +32,17 @@ To work through this tutorial, take the following steps:

Start DBeaver, and select **Database > New Connection** from the menu. In the dialog that appears, select **CockroachDB** from the list.

<img src="{{ 'images/v2.1/dbeaver-01-select-cockroachdb.png' | relative_url }}" alt="DBeaver - Select CockroachDB" style="border:1px solid #eee;max-width:100%" />
<img src="{{ 'images/v23.1/dbeaver-01-select-cockroachdb.png' | relative_url }}" alt="DBeaver - Select CockroachDB" style="border:1px solid #eee;max-width:100%" />
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above re: please don't introduce more cross-version linking, please fix by creating the v21.2 images directory and copying the images there. This stinks but it will make the future cross-version link removal PRs easier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants