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

[DOC-10557] Fix LTS date logic bug and 23.1 TOC #18667

Merged
merged 3 commits into from
Jun 18, 2024
Merged

[DOC-10557] Fix LTS date logic bug and 23.1 TOC #18667

merged 3 commits into from
Jun 18, 2024

Conversation

mdlinville
Copy link
Contributor

@mdlinville mdlinville commented Jun 18, 2024

[DOC-10557] Fix LTS date logic bug and 23.1 TOC

These bugs are causing the unsupported-version admonition to show up only on Release pages and not in versioned pages for any version (including EOL).

  • Also add debug capability (disabled by default)
  • Also propagate the combined Releases TOC entry to 23.1

This PR takes over #18615 (which already had review) and implements its fixes, as well as fixing a regression I somehow introduced there and making the logic just a bit more safe. I keep missing the "In LTS maintenance or LTS assistance, just show the LTS assistance" message in the logic.

Previews

Versioned release pages:
GA: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/releases/v24.1 (No admonition)
GA: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/releases/v23.2 (No admonition)
LTS: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/releases/v23.1 (LTS admonition)
EOL: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/releases/v21.1 (EOL admonition)

Versioned non-release pages:
GA: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/v24.1/authentication (No admonition)
GA: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/v23.2/authentication (No admonition)
LTS: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/v23.1/authentication (LTS admonition)
EOL: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/v21.1/authentication (EOL admonition)

Unversioned pages:
Homepage: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/ (No admonition)
Releases index: https://deploy-preview-18667--cockroachdb-docs.netlify.app/docs/releases/ (No admonition, LTS link in 23.1 table rows)

Copy link

Files changed:

  • src/current/_includes/sidebar-data-v23.1.json
  • src/current/_includes/unsupported-version.md
  • src/current/_includes/v23.1/sidebar-data/latest-releases.json
  • src/current/_layouts/page.html

Copy link

netlify bot commented Jun 18, 2024

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit ad40268
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-interactivetutorials-docs/deploys/66720deb09a64f000883ed3f

Copy link

netlify bot commented Jun 18, 2024

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit ad40268
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-api-docs/deploys/66720debe41cee0008e6ea25

Copy link

netlify bot commented Jun 18, 2024

Netlify Preview

Name Link
🔨 Latest commit ad40268
🔍 Latest deploy log https://app.netlify.com/sites/cockroachdb-docs/deploys/66720deb606c180008211e96
😎 Deploy Preview https://deploy-preview-18667--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 site configuration.

- Also add debug capability (disabled by default)
- Also propagate the combined Releases TOC entry to 23.1
@mdlinville mdlinville merged commit 4942242 into main Jun 18, 2024
6 checks passed
@mdlinville mdlinville deleted the DOC-10557 branch June 18, 2024 23:15
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.

1 participant