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

website: latest PR for new Docs structure, testing #11640

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
07d9953
first pass
Sep 24, 2024
c237523
dependency shenanigans
Sep 24, 2024
5628b06
move blueprints
Sep 24, 2024
a91c695
few broken links
Sep 25, 2024
73a5162
change config the throw errors
Sep 25, 2024
2c67c0e
internal file edits
Sep 25, 2024
b3ba2d8
fighting links
Sep 25, 2024
32933f7
remove sidebarDev
Sep 26, 2024
7eaad36
fix subdomain
BeryJu Sep 26, 2024
639b92e
fix relative URL
BeryJu Sep 26, 2024
2cf8b98
fix mismatched package versions
BeryJu Sep 26, 2024
84f901c
fix api reference build
BeryJu Sep 26, 2024
ebe2cf9
test tweak
Sep 26, 2024
1c706fe
links hell
Sep 26, 2024
b987625
more links hell
Sep 26, 2024
6b3a452
links hell2
Sep 26, 2024
ff357e8
yep last of the links
Sep 26, 2024
3155dcb
last broken link fixed
Sep 27, 2024
8d51d6b
Merge branch 'main' into migrate-9-25
BeryJu Sep 30, 2024
acff4e6
re-add cves
BeryJu Sep 30, 2024
b411fd1
add devdocs redirects
Oct 7, 2024
e7c095f
add dir
Oct 7, 2024
27c8e2e
tweak netlify.toml
Oct 7, 2024
03c1a0b
move latest 2 CVES into dir
Oct 7, 2024
ca67aae
fix links to moved cves
Oct 7, 2024
be95701
typoed title fix
Oct 7, 2024
680f7ad
fix link
Oct 7, 2024
aecddd5
remove banner
Oct 7, 2024
ca1e2da
remove committed api docs
rissson Oct 7, 2024
dd7aee7
integrations: remove version dropdown
rissson Oct 7, 2024
d55d923
Update Makefile
rissson Oct 7, 2024
8aa6183
change doc links in web as well
rissson Oct 7, 2024
97f1ede
fix some more docs paths
rissson Oct 7, 2024
07f76a6
fix more docs paths
rissson Oct 7, 2024
b99a484
ci: require ci-web.build for merging
rissson Oct 7, 2024
ab4076d
Revert "ci: require ci-web.build for merging"
rissson Oct 7, 2024
1287d49
remove sluf for Application
Oct 7, 2024
f3eb801
put slug back in
Oct 7, 2024
5c3eda5
minor fix to trigger deploy
Oct 7, 2024
55ac345
Merge branch 'main' into migrate-10-9
Oct 9, 2024
cf48d38
Spelled out Documentation in menu bar
Oct 9, 2024
dc2454b
remove image redirects...
BeryJu Oct 9, 2024
562bbb0
remove explicit index.md
BeryJu Oct 9, 2024
0245471
remove mdx first
BeryJu Oct 9, 2024
1670d85
then remove .md
BeryJu Oct 9, 2024
f44bfd0
add missing prefix
BeryJu Oct 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
👋 Hi there! Welcome.

Please check the Contributing guidelines: https://goauthentik.io/developer-docs/#how-can-i-contribute
Please check the Contributing guidelines: https://docs.goauthentik.io/docs/developer-docs/#how-can-i-contribute
-->

## Details
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ pg_name := $(shell python -m authentik.lib.config postgresql.name 2>/dev/null)
CODESPELL_ARGS = -D - -D .github/codespell-dictionary.txt \
-I .github/codespell-words.txt \
-S 'web/src/locales/**' \
-S 'website/developer-docs/api/reference/**' \
-S 'website/docs/developer-docs/api/reference/**' \
authentik \
internal \
cmd \
web/src \
website/src \
website/blog \
website/developer-docs \
website/docs \
website/integrations \
website/src
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ For bigger setups, there is a Helm Chart [here](https://github.com/goauthentik/h

## Development

See [Developer Documentation](https://goauthentik.io/developer-docs/?utm_source=github)
See [Developer Documentation](https://docs.goauthentik.io/docs/developer-docs/?utm_source=github)

## Security

Expand Down
2 changes: 1 addition & 1 deletion authentik/blueprints/v1/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
from authentik.tenants.models import Tenant

# Context set when the serializer is created in a blueprint context
# Update website/developer-docs/blueprints/v1/models.md when used
# Update website/docs/customize/blueprints/v1/models.md when used
SERIALIZER_CONTEXT_BLUEPRINT = "blueprint_entry"


Expand Down
2 changes: 1 addition & 1 deletion authentik/lib/default.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# update website/docs/installation/configuration.mdx
# update website/docs/install-config/configuration/configuration.mdx
# This is the default configuration file
postgresql:
host: localhost
Expand Down
2 changes: 1 addition & 1 deletion authentik/outposts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ServiceConnectionInvalid(SentryIgnoredException):
class OutpostConfig:
"""Configuration an outpost uses to configure it self"""

# update website/docs/outposts/_config.md
# update website/docs/add-secure-apps/outposts/_config.md

authentik_host: str = ""
authentik_host_insecure: bool = False
Expand Down
2 changes: 1 addition & 1 deletion authentik/stages/prompt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class FieldTypes(models.TextChoices):
"""Field types an Prompt can be"""

# update website/docs/flow/stages/prompt/index.md
# update website/docs/add-secure-apps/flows-stages/stages/prompt/index.md

# Simple text field
TEXT = "text", _("Text: Simple Text input")
Expand Down
2 changes: 1 addition & 1 deletion scripts/api-ts-templates/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This package provides a generated API Client for [authentik](https://goauthentik

### Building

See https://goauthentik.io/developer-docs/making-schema-changes
See https://docs.goauthentik.io/docs/developer-docs/making-schema-changes

### Consuming

Expand Down
2 changes: 1 addition & 1 deletion web/src/admin/applications/ApplicationListPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "@goauthentik/admin/applications/ApplicationForm";
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
import { PFSize } from "@goauthentik/common/enums.js";
import "@goauthentik/components/ak-app-icon";
import MDApplication from "@goauthentik/docs/applications/index.md";
import MDApplication from "@goauthentik/docs/add-secure-apps/applications/index.md";
import "@goauthentik/elements/Markdown";
import "@goauthentik/elements/buttons/SpinnerButton";
import "@goauthentik/elements/forms/DeleteBulkForm";
Expand Down
2 changes: 1 addition & 1 deletion web/src/admin/blueprints/BlueprintForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class BlueprintForm extends ModelForm<BlueprintInstance, string> {
target="_blank"
rel="noopener noreferrer"
href="${docLink(
"/developer-docs/blueprints/?utm_source=authentik#storage---oci",
"/docs/customize/blueprints/?utm_source=authentik#storage---oci",
)}"
>${msg("Documentation")}</a
>
Expand Down
4 changes: 3 additions & 1 deletion web/src/admin/outposts/OutpostDeploymentModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export class OutpostDeploymentModal extends ModalButton {
<p>
<a
target="_blank"
href="${docLink("/docs/outposts?utm_source=authentik#deploy")}"
href="${docLink(
"/docs/add-secure-apps/outposts?utm_source=authentik#deploy",
)}"
rel="noopener noreferrer"
>${msg("View deployment documentation")}</a
>
Expand Down
4 changes: 2 additions & 2 deletions web/src/admin/outposts/OutpostForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
<a
target="_blank"
rel="noopener noreferrer"
href="${docLink("/docs/outposts?utm_source=authentik")}"
href="${docLink("/docs/add-secure-apps/outposts?utm_source=authentik")}"
>${msg("See documentation")}</a
>.
</p>
Expand Down Expand Up @@ -251,7 +251,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
target="_blank"
rel="noopener noreferrer"
href="${docLink(
"/docs/outposts?utm_source=authentik#configuration",
"/docs/add-secure-apps/outposts?utm_source=authentik#configuration",
)}"
>${msg("Documentation")}</a
>
Expand Down
4 changes: 3 additions & 1 deletion web/src/admin/policies/expression/ExpressionPolicyForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export class ExpressionPolicyForm extends BasePolicyForm<ExpressionPolicy> {
<a
rel="noopener noreferrer"
target="_blank"
href="${docLink("/docs/policies/expression?utm_source=authentik")}"
href="${docLink(
"/docs/customize/policies/expression?utm_source=authentik",
)}"
>
${msg("See documentation for a list of all variables.")}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export abstract class BasePropertyMappingForm<T extends PropertyMapping> extends
string
> {
docLink(): string {
return "/docs/providers/property-mappings/expression?utm_source=authentik";
return "/docs/add-secure-apps/providers/property-mappings/expression?utm_source=authentik";
}

getSuccessMessage(): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class PropertyMappingProviderRACForm extends BasePropertyMappingForm<RACP
target="_blank"
rel="noopener noreferrer"
href="${docLink(
"/docs/providers/property-mappings/expression?utm_source=authentik",
"/docs/add-secure-apps/providers/property-mappings/expression?utm_source=authentik",
)}"
>
${msg("See documentation for a list of all variables.")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { LDAPSourcePropertyMapping, PropertymappingsApi } from "@goauthentik/api
@customElement("ak-property-mapping-source-ldap-form")
export class PropertyMappingSourceLDAPForm extends BasePropertyMappingForm<LDAPSourcePropertyMapping> {
docLink(): string {
return "/docs/sources/property-mappings/expressions?utm_source=authentik";
return "/docs/user-sources/sources/property-mappings/expressions?utm_source=authentik";
}

loadInstance(pk: string): Promise<LDAPSourcePropertyMapping> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { OAuthSourcePropertyMapping, PropertymappingsApi } from "@goauthentik/ap
@customElement("ak-property-mapping-source-oauth-form")
export class PropertyMappingSourceOAuthForm extends BasePropertyMappingForm<OAuthSourcePropertyMapping> {
docLink(): string {
return "/docs/sources/property-mappings/expressions?utm_source=authentik";
return "/docs/user-sources/sources/property-mappings/expressions?utm_source=authentik";
}

loadInstance(pk: string): Promise<OAuthSourcePropertyMapping> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { PlexSourcePropertyMapping, PropertymappingsApi } from "@goauthentik/api
@customElement("ak-property-mapping-source-plex-form")
export class PropertyMappingSourcePlexForm extends BasePropertyMappingForm<PlexSourcePropertyMapping> {
docLink(): string {
return "/docs/sources/property-mappings/expressions?utm_source=authentik";
return "/docs/user-sources/sources/property-mappings/expressions?utm_source=authentik";
}

loadInstance(pk: string): Promise<PlexSourcePropertyMapping> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { PropertymappingsApi, SAMLSourcePropertyMapping } from "@goauthentik/api
@customElement("ak-property-mapping-source-saml-form")
export class PropertyMappingSourceSAMLForm extends BasePropertyMappingForm<SAMLSourcePropertyMapping> {
docLink(): string {
return "/docs/sources/property-mappings/expressions?utm_source=authentik";
return "/docs/user-sources/sources/property-mappings/expressions?utm_source=authentik";
}

loadInstance(pk: string): Promise<SAMLSourcePropertyMapping> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { PropertymappingsApi, SCIMSourcePropertyMapping } from "@goauthentik/api
@customElement("ak-property-mapping-source-scim-form")
export class PropertyMappingSourceSCIMForm extends BasePropertyMappingForm<SCIMSourcePropertyMapping> {
docLink(): string {
return "/docs/sources/property-mappings/expressions?utm_source=authentik";
return "/docs/user-sources/sources/property-mappings/expressions?utm_source=authentik";
}

loadInstance(pk: string): Promise<SCIMSourcePropertyMapping> {
Expand Down
2 changes: 1 addition & 1 deletion web/src/admin/providers/oauth2/OAuth2ProviderViewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
import { EVENT_REFRESH } from "@goauthentik/common/constants";
import renderDescriptionList from "@goauthentik/components/DescriptionList";
import "@goauthentik/components/events/ObjectChangelog";
import MDProviderOAuth2 from "@goauthentik/docs/providers/oauth2/index.md";
import MDProviderOAuth2 from "@goauthentik/docs/add-secure-apps/providers/oauth2/index.md";
import { AKElement } from "@goauthentik/elements/Base";
import "@goauthentik/elements/CodeMirror";
import "@goauthentik/elements/EmptyState";
Expand Down
18 changes: 9 additions & 9 deletions web/src/admin/providers/proxy/ProxyProviderViewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import { EVENT_REFRESH } from "@goauthentik/common/constants";
import { convertToSlug } from "@goauthentik/common/utils";
import "@goauthentik/components/ak-status-label";
import "@goauthentik/components/events/ObjectChangelog";
import MDCaddyStandalone from "@goauthentik/docs/providers/proxy/_caddy_standalone.md";
import MDNginxIngress from "@goauthentik/docs/providers/proxy/_nginx_ingress.md";
import MDNginxPM from "@goauthentik/docs/providers/proxy/_nginx_proxy_manager.md";
import MDNginxStandalone from "@goauthentik/docs/providers/proxy/_nginx_standalone.md";
import MDTraefikCompose from "@goauthentik/docs/providers/proxy/_traefik_compose.md";
import MDTraefikIngress from "@goauthentik/docs/providers/proxy/_traefik_ingress.md";
import MDTraefikStandalone from "@goauthentik/docs/providers/proxy/_traefik_standalone.md";
import MDHeaderAuthentication from "@goauthentik/docs/providers/proxy/header_authentication.md";
import MDCaddyStandalone from "@goauthentik/docs/add-secure-apps/providers/proxy/_caddy_standalone.md";
import MDNginxIngress from "@goauthentik/docs/add-secure-apps/providers/proxy/_nginx_ingress.md";
import MDNginxPM from "@goauthentik/docs/add-secure-apps/providers/proxy/_nginx_proxy_manager.md";
import MDNginxStandalone from "@goauthentik/docs/add-secure-apps/providers/proxy/_nginx_standalone.md";
import MDTraefikCompose from "@goauthentik/docs/add-secure-apps/providers/proxy/_traefik_compose.md";
import MDTraefikIngress from "@goauthentik/docs/add-secure-apps/providers/proxy/_traefik_ingress.md";
import MDTraefikStandalone from "@goauthentik/docs/add-secure-apps/providers/proxy/_traefik_standalone.md";
import MDHeaderAuthentication from "@goauthentik/docs/add-secure-apps/providers/proxy/header_authentication.md";
import { AKElement } from "@goauthentik/elements/Base";
import "@goauthentik/elements/CodeMirror";
import "@goauthentik/elements/Markdown";
Expand Down Expand Up @@ -166,7 +166,7 @@ export class ProxyProviderViewPage extends AKElement {
return input;
}
const extHost = new URL(this.provider.externalHost);
// See website/docs/providers/proxy/forward_auth.mdx
// See website/docs/add-secure-apps/providers/proxy/forward_auth.mdx
if (this.provider?.mode === ProxyMode.ForwardSingle) {
return input
.replaceAll("authentik.company", window.location.hostname)
Expand Down
2 changes: 1 addition & 1 deletion web/src/admin/providers/scim/SCIMProviderViewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "@goauthentik/admin/rbac/ObjectPermissionsPage";
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
import { EVENT_REFRESH } from "@goauthentik/common/constants";
import "@goauthentik/components/events/ObjectChangelog";
import MDSCIMProvider from "@goauthentik/docs/providers/scim/index.md";
import MDSCIMProvider from "@goauthentik/docs/add-secure-apps/providers/scim/index.md";
import { AKElement } from "@goauthentik/elements/Base";
import "@goauthentik/elements/Markdown";
import "@goauthentik/elements/SyncStatusCard";
Expand Down
2 changes: 1 addition & 1 deletion website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ yarn-error.log*

static/docker-compose.yml
static/schema.yaml
developer-docs/api/reference/**
docs/developer-docs/api/reference/**
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Applications are displayed to users when:
- The user has access defined via policies (or the application has no policies bound)
- A valid Launch URL is configured/could be guessed, this consists of URLs starting with http:// and https://

The following aspects can be configured:
The following options can be configured:

- _Name_: This is the name shown for the application card
- _Launch URL_: The URL that is opened when a user clicks on the application. When left empty, authentik tries to guess it based on the provider
Expand All @@ -35,7 +35,7 @@ The following aspects can be configured:

If the authentik server does not have a volume mounted under `/media`, you'll get a text input. This accepts absolute URLs. If you've mounted single files into the container, you can reference them using `https://authentik.company/media/my-file.png`.

If there is a mount under `/media` or if [S3 storage](../installation/storage-s3.md) is configured, you'll instead see a field to upload a file.
If there is a mount under `/media` or if [S3 storage](../../install-config/storage-s3.md) is configured, you'll instead see a field to upload a file.

- _Publisher_: Text shown below the application
- _Description_: Subtext shown on the application card below the publisher
Loading
Loading