Skip to content

docs: Documents are consistent with the website #1755

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

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

phk422
Copy link
Contributor

@phk422 phk422 commented Jul 9, 2024

Changes

Fix #1748

How to Review

Documents are consistent with the website

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

@phk422 phk422 requested a review from a team as a code owner July 9, 2024 03:27
Copy link

changeset-bot bot commented Jul 9, 2024

⚠️ No Changeset found

Latest commit: 3ca8e94

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@drwpow drwpow left a comment

Choose a reason for hiding this comment

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

Thank you for making these changes! Unfortunately by the nature of these appearing both on GitHub AND npm, which don’t have the markdown customizations of the website, they must differ. Mainly this means:

  • The link to docs have been removed; we MUST link to docs in READMEs!
  • Relative links must be preserved
  • No codefence filenames (this is a custom extension)
  • “Tip” blocks as blockquotes are fine (that’s all we can do), but should only have one heading, not two.

There’s another point I didn’t comment on which is the docs open all remote links in a new tab, and the <a> tags do this in markdown. Removing the <a> tags actually makes them inconsistent with docs, so they won’t open a new tab. But I don’t care about this that much, and it’s probably just simpler to not have HTML in docs, so I’m OK with this change.

Other than that, happy to approve once these changes have been addressed!

Copy link
Contributor

@drwpow drwpow left a comment

Choose a reason for hiding this comment

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

Awesome work, thank you!

@drwpow drwpow merged commit 2258930 into openapi-ts:main Jul 16, 2024
7 checks passed
@phk422 phk422 deleted the fix/docs branch July 17, 2024 00:58
kerwanp pushed a commit to kerwanp/openapi-typescript that referenced this pull request Jul 29, 2024
* fix(docs): Document inconsistency

* docs: format

* docs: Document consistency

* docs: update
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.

Setup section in npm and the docs are not similar
2 participants