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: Docs/update links #2329

Merged
merged 12 commits into from
Sep 23, 2023
Merged

Conversation

RobertRosca
Copy link
Contributor

@RobertRosca RobertRosca commented Sep 21, 2023

Pull Request Checklist

  • New code has 100% test coverage
  • (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
  • (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

Description

Ran across a few broken links in the documentation. This PR:

  • fixes those links
  • adds in a new makefile recipe for:
    • running a 'light' Sphinx linkcheck which only checks internal references
    • running a full linkcheck which checks all links
  • adds the light linkcheck as a step to the CI

There was an issue running linkcheck with the pydata theme, so I had to add in a mildly awkward workaround to disable the theme when linkcheck is running.

The full check is not used in any CIs, but it could be set to be manually triggered or to only run on merges to main.

There are a few invalid-ish external links (mostly anchor issues) which I haven't fixed yet, which is why this is a draft PR. done

@euri10 euri10 changed the title Docs/update links chore: Docs/update links Sep 21, 2023
docs/migration/fastapi.rst Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
docs/release-notes/changelog.rst Show resolved Hide resolved
docs/release-notes/changelog.rst Show resolved Hide resolved
docs/release-notes/changelog.rst Show resolved Hide resolved
docs/release-notes/changelog.rst Show resolved Hide resolved
docs/migration/fastapi.rst Show resolved Hide resolved
docs/usage/openapi.rst Outdated Show resolved Hide resolved
docs/usage/routing/overview.rst Show resolved Hide resolved
docs/usage/stores.rst Outdated Show resolved Hide resolved
@JacobCoffee
Copy link
Member

@RobertRosca is this ready? I see it is in draft status but looks mostly done

@RobertRosca
Copy link
Contributor Author

About your comments on the comma separated issue links in the changelog: I think I know what's going on since I ran into this when checking the docs locally. The URL for 'Releae notes/changelog' is hardcoded to https://docs.litestar.dev/2/release-notes/changelog.html, so when you click it even in the preview/locally built docs it takes you to the page for the current deployed documentation, not the preview.

The formatting/incorrect links you pointed out are the ones I fixed with those changes, you can see the preview page for the changelog here: https://litestar-org.github.io/litestar-docs-preview/2329/release-notes/changelog.html

Current docs:

image

Preview docs:

image

@RobertRosca RobertRosca marked this pull request as ready for review September 22, 2023 11:05
@RobertRosca RobertRosca requested review from a team as code owners September 22, 2023 11:05
@provinzkraut
Copy link
Member

@all-contributors add @RobertRosca for docs

@allcontributors
Copy link
Contributor

@provinzkraut

I've put up a pull request to add @RobertRosca! 🎉

@provinzkraut provinzkraut enabled auto-merge (squash) September 23, 2023 08:36
@provinzkraut
Copy link
Member

@RobertRosca Thanks, this is quite helpful (=

@github-actions
Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/2329

@provinzkraut provinzkraut merged commit 384fce6 into litestar-org:main Sep 23, 2023
16 checks passed
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.

3 participants