1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/website/docs/how-to
Thomas Heartman 14e052b9ac
docs: auto-generate remaining server-side SDK docs (#2858)
This PR builds on the preceding doc auto-generation PRs and generates
documentation for the remaining server-side SDKs.

## Why

Refer to https://github.com/Unleash/unleash/pull/2809 for more context
about generating SDK docs.

## What

-   Adds generation for the remaining server-side SDKs
- Moves generated docs from the `/reference/sdks` directory to
`/generated` directory.
- Makes sure that the URLs do not change because of the move by using
the `slug` frontmatter property.
- replaces relative github links in the markdown documents so that they
become absolute github links. (refer to the next section)
- Updates some image styling so that it doesn't apply to readme badges
(we don't need them using `display: block`)

### On link replacing:

This PR adds handling of links in the generated documentation.
Specifically, it changes links in one case:

Relative links to github. Links to code and other files in the
repository. These are prefixed with the repository's URL.

While this should work in most cases, it will fail in cases where the
links to the files are not on the repository's primary branch.
(typically main, but could also be "v3", for instance). In these cases,
the links will get a double branch in the URL and will fail. However, I
see no easy way around this (though suggestions are definitely
accepted!), and think it's a fair tradeoff. It takes the links from
"definitely failing" to "will work in the vast majority of cases".

Note: I originally also wanted to handle the case where the link is an
absolute link to docs.getunleash.io. We could turn these into relative
urls to avoid full page reloads and enjoy a smoother experience.
However, the client-side redirects don't work correctly if the relative
URL goes to a redirect page, so you end up with a 404 page. As such, I
think it's better to leave the links as absolute for now.
2023-01-13 12:40:28 +01:00
..
how-to-add-sso-google.md Fix(typo): Fix "login"/"log in", "logout"/"log out" issues (#2807) 2023-01-03 13:40:03 +01:00
how-to-add-sso-open-id-connect.md Fix(typo): Fix "login"/"log in", "logout"/"log out" issues (#2807) 2023-01-03 13:40:03 +01:00
how-to-add-sso-saml-keycloak.md refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
how-to-add-sso-saml.md
how-to-add-strategy-constraints.md
how-to-add-users-to-unleash.md refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
how-to-capture-impression-data.mdx
how-to-clone-environments.mdx
how-to-create-and-assign-custom-project-roles.md
how-to-create-and-manage-user-groups.md
how-to-create-api-tokens.mdx
how-to-create-feature-toggles.md refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
how-to-create-personal-access-tokens.mdx
how-to-create-service-accounts.mdx docs: service accounts (#2881) 2023-01-13 09:46:50 +00:00
how-to-define-custom-context-fields.md refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
how-to-enable-openapi.mdx
how-to-manage-public-invite-tokens.mdx Docs/public signup (#2070) 2022-10-10 16:12:11 +03:00
how-to-run-the-unleash-proxy.mdx
how-to-schedule-feature-releases.mdx
how-to-send-feature-updates-to-slack-deprecated.md
how-to-set-up-group-sso-sync.md docs: small fixes (#2688) 2022-12-14 15:26:41 +01:00
how-to-setup-sso-keycloak-group-sync.md Docs: fix typo / lexical illusion "the the" -> "to the" 2022-12-18 23:06:35 +01:00
how-to-use-custom-strategies.md docs: auto-generate remaining server-side SDK docs (#2858) 2023-01-13 12:40:28 +01:00
how-to-use-the-admin-api.md