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

fix: fix use of HTML in the descriptions to support MDX #108

Closed
wants to merge 1 commit into from

Conversation

B4nan
Copy link
Member

@B4nan B4nan commented Nov 20, 2024

During integration of our openapi specs to the new docusaurus plugin, I faced several problems with our invalid HTML descriptions. This PR fixes them:

  • missing <ul> and <li>
  • use <br /> instead of <br>
  • use markdown instead of HTML for <blockquote>

Also removes the inline style tags in favor of classes, since that approach was also incompatible with MDX.

To be merged after those styles are deployed in the apify-docs repo.

During integration of our openapi specs to the new docusaurus plugin, I faced several problems with our invalid HTML descriptions. This PR fixes them:

- missing `<ul>` and `<li>`
- use `<br />` instead of <br>`
- use markdown instead of HTML for `<blockquote>`

Also removes the inline `style` tags in favor of classes, since that approach was also incompatible with MDX.

To be merged after those styles are deployed in the apify-docs repo.
B4nan added a commit to apify/apify-docs that referenced this pull request Nov 29, 2024
This PR overhauls our OpenAPI setup completely:
- new API docs are available on
https://docs.apify.com/api/v2-new/apify-api
- use https://github.com/PaloAltoNetworks/docusaurus-openapi-docs
instead of the redoc plugin
- embed the OpenAPI specs to this repository (`apify-api` folder)
	- both the specs yaml file and the MDX files are git ignored
- the spec include (not only) corrections from
apify/openapi#108
- provide NPM scripts to work with the OpenAPI specs, namely
- `npm start` will generate the specs as well as produce the MDX files
out of them
- `npm run api:rebuild` will rebuild the yaml spec file and recreate the
MDX files
- update docusaurus to v3.6.3 and enable `faster` mode (rust based
tooling)
- cache Run on Apify code hashes locally

Things to discuss:
- ~index page now only redirects, maybe we should move the content from
the introduction section (so outside of OpenAPI specs)~
- ~folder structure~
- OpenAPI tests and schemathesis
- nested readmes in openapi folder

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jindřich Bär <jindrichbar@gmail.com>
@B4nan
Copy link
Member Author

B4nan commented Nov 29, 2024

closing as included in the new specs which is inlined in apify-docs

@B4nan B4nan closed this Nov 29, 2024
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