Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
926 commits
Select commit Hold shift + click to select a range
205d7e1
Coderabbit updates
clairekinde11 Aug 19, 2025
200eb2c
Coderabbit updates
clairekinde11 Aug 19, 2025
ee2b055
Update src/content/docs/manage-your-apis/about-api-keys/api-keys-quic…
clairekinde11 Aug 19, 2025
df00320
link fix
clairekinde11 Aug 19, 2025
edd1b4d
Update src/content/docs/billing/about-billing/kinde-billing-faqs.mdx
clairekinde11 Aug 19, 2025
1e4c555
Update src/content/docs/billing/about-billing/kinde-billing-faqs.mdx
clairekinde11 Aug 19, 2025
73516fa
Merge pull request #534 from kinde-oss/Feat/ClaireAPIkeys
clairekinde11 Aug 19, 2025
7365002
Update kinde-billing-faqs.mdx
clairekinde11 Aug 19, 2025
a4199b3
Update sidebarData.ts
clairekinde11 Aug 19, 2025
8daf4c9
Merge pull request #535 from kinde-oss/Feat/API-keys-navigation
clairekinde11 Aug 19, 2025
60baba7
Merge pull request #533 from kinde-oss/Feat/Billing-FAQ
clairekinde11 Aug 19, 2025
de0b29c
Edit
clairekinde11 Aug 19, 2025
c2e9a4e
Update change-business-owner.mdx
clairekinde11 Aug 19, 2025
a2f87df
Update nav
clairekinde11 Aug 19, 2025
9972828
Merge pull request #529 from kinde-oss/Feat/Member-roles
clairekinde11 Aug 19, 2025
13be642
Update astro.config.mjs
clairekinde11 Aug 19, 2025
f87ea7d
Update sidebarData.ts
clairekinde11 Aug 19, 2025
68b56ae
Update sidebarData.ts
clairekinde11 Aug 19, 2025
a4b03da
Merge pull request #536 from kinde-oss/Fix/API-Keys-Navigation
clairekinde11 Aug 19, 2025
0b7f00f
Add files via upload
clairekinde11 Aug 19, 2025
44b8708
Update sidebarData.ts
clairekinde11 Aug 19, 2025
8817a37
Merge pull request #537 from kinde-oss/Fix/New-icon-for-your-apis
clairekinde11 Aug 19, 2025
0368d21
Fix incorrect redirect
clairekinde11 Aug 20, 2025
9fe15d9
Merge pull request #538 from kinde-oss/Fix/Indexpage-API-keys
clairekinde11 Aug 20, 2025
d832899
Replace 'index' topic
clairekinde11 Aug 20, 2025
dd616cb
Replaced by overview file
clairekinde11 Aug 20, 2025
ac70acf
Update redirects to avoid 404
clairekinde11 Aug 20, 2025
d4a263a
Merge pull request #539 from kinde-oss/clairekinde11-patch-1
clairekinde11 Aug 20, 2025
b3e4eb4
Draft
clairekinde11 Aug 22, 2025
a43d590
docs: fix incorrect portal link endpoint path
abdelrahman-zaki Aug 22, 2025
c0e207a
Link update
clairekinde11 Aug 24, 2025
45a65de
link fix
clairekinde11 Aug 24, 2025
7866e25
Fixing links - editing
clairekinde11 Aug 25, 2025
8afb607
Merge pull request #541 from abdelrahman-zaki/fix-portal-link-endpoint
clairekinde11 Aug 25, 2025
7749dfd
Link fixes
clairekinde11 Aug 26, 2025
a61bb9b
Adding CCPA and CPRA to compliance page
alex72508 Aug 26, 2025
ec73046
Fix typo
alex72508 Aug 26, 2025
4bd7478
Fix typo
alex72508 Aug 26, 2025
e20f514
Update m2m-faqs.mdx
clairekinde11 Aug 26, 2025
5547381
Update m2m-faqs.mdx
clairekinde11 Aug 26, 2025
3b6f7b8
Update for API keys
clairekinde11 Aug 26, 2025
ad04e27
Refs to API keys
clairekinde11 Aug 26, 2025
0540400
API keys update
clairekinde11 Aug 26, 2025
2adab38
Update api-scopes-m2m-applications.mdx
clairekinde11 Aug 26, 2025
2736c83
Update custom-api-scopes.mdx
clairekinde11 Aug 26, 2025
1b9e378
Merge pull request #544 from kinde-oss/Fix/API-keys-in-other-docs-refs
clairekinde11 Aug 26, 2025
25e7eda
Draft: Create custom-styling-per-application
ahn-nath Aug 26, 2025
8d6470c
docs: updated the draft with relevant details
ahn-nath Aug 26, 2025
b6ad3a0
Fix: add proper formatting for code blocks
ahn-nath Aug 26, 2025
e0fc89a
refactor: added images to the doc file to enrich
ahn-nath Aug 26, 2025
dc62008
Merge branch 'patch-1' of https://github.com/ahn-nath/documentation i…
ahn-nath Aug 26, 2025
04d4410
Update self-serve-portal-for-orgs.mdx
clairekinde11 Aug 27, 2025
d78c56c
Update self-serve-portal-for-orgs.mdx
clairekinde11 Aug 27, 2025
9f1661d
Update self-serve-portal-for-users.mdx
clairekinde11 Aug 27, 2025
1b800f0
New top level topic for portal
clairekinde11 Aug 27, 2025
b0bc5be
typo fix
clairekinde11 Aug 27, 2025
77a6c5e
Merge pull request #546 from kinde-oss/Fix/Update-portal-doc
clairekinde11 Aug 27, 2025
3d8d480
Update about-self-serve-portal.mdx
clairekinde11 Aug 28, 2025
8e4a5e2
refactor: replace secrets with environment variables
ahn-nath Aug 28, 2025
53101a1
fix: replace Google redirectors with canonical docs URLs
ahn-nath Aug 28, 2025
49c191a
Merge pull request #547 from kinde-oss/Fix/portal-docs
clairekinde11 Aug 29, 2025
6712ab9
Topic separation - Auth0 import only
clairekinde11 Aug 29, 2025
58b60ef
Added UUID
clairekinde11 Aug 29, 2025
7bbb30e
Updated to remove Auth0 import version
clairekinde11 Aug 29, 2025
0425bb8
sidebar order
clairekinde11 Aug 29, 2025
72eae1b
Sidebar order
clairekinde11 Aug 29, 2025
cd977f6
Sidebar order
clairekinde11 Aug 29, 2025
02ad7b6
Sidebar order
clairekinde11 Aug 29, 2025
26ef970
Updates to clarify importing
clairekinde11 Aug 29, 2025
6ea0bae
Update import-users-from-auth0.mdx
clairekinde11 Aug 29, 2025
1e9c816
Update troubleshoot-user-import-errors.mdx
clairekinde11 Aug 29, 2025
9d48baf
New draft of topic - split from to-do app creation
clairekinde11 Sep 1, 2025
b7b97e6
Draft Supabase to-do list app
clairekinde11 Sep 1, 2025
48f43c1
Change order
clairekinde11 Sep 1, 2025
e54e0ce
Re-order
clairekinde11 Sep 1, 2025
98e8c3c
Link edits
clairekinde11 Sep 1, 2025
2d4a29b
Minor edits
clairekinde11 Sep 1, 2025
e4bb24a
Update kinde-supabase.mdx
clairekinde11 Sep 1, 2025
4f560db
New topic from Tamal - Kinde and Electron
clairekinde11 Sep 1, 2025
c24f32d
Updating compliance page with CCPA and CPRA logos
alex72508 Sep 1, 2025
2cebc06
Undo customHttp.yml
alex72508 Sep 1, 2025
b974337
Merge branch 'main' into docs/ccpa-cpra
alex72508 Sep 1, 2025
df7ea42
Updating CSP
alex72508 Sep 1, 2025
c506e3e
Update src/content/docs/trust-center/privacy-and-compliance/complianc…
alex72508 Sep 1, 2025
185416f
Merge pull request #543 from kinde-oss/docs/ccpa-cpra
clairekinde11 Sep 1, 2025
1019ec2
Merge pull request #549 from kinde-oss/Feat/Supabase
clairekinde11 Sep 2, 2025
9cd8abb
Update to add new section about prepping JSON files
clairekinde11 Sep 2, 2025
63fdbfa
Update to format as exanding section
clairekinde11 Sep 2, 2025
b6cd9e5
Creating LLMS text files
alex72508 Sep 2, 2025
62cc70e
Update path for llms text files
alex72508 Sep 2, 2025
fa787a9
llms text files for each section
alex72508 Sep 2, 2025
a5244dc
Updates to file layout
alex72508 Sep 2, 2025
1a1ebfe
Update about-self-serve-portal.mdx
clairekinde11 Sep 2, 2025
4ee4504
Update src/content/docs/machine-to-machine-applications/about-m2m/m2m…
clairekinde11 Sep 2, 2025
93bb0f8
Update src/content/docs/machine-to-machine-applications/about-m2m/m2m…
clairekinde11 Sep 2, 2025
3bbc3b4
Update src/content/docs/machine-to-machine-applications/about-m2m/m2m…
clairekinde11 Sep 2, 2025
97730b7
Update about-self-serve-portal.mdx
clairekinde11 Sep 2, 2025
191461e
Update src/content/docs/machine-to-machine-applications/about-m2m/m2m…
clairekinde11 Sep 2, 2025
ad05ccc
Update src/content/docs/machine-to-machine-applications/about-m2m/m2m…
clairekinde11 Sep 2, 2025
f0151c1
Code rabbit edit
clairekinde11 Sep 2, 2025
814b9a1
Update src/content/docs/machine-to-machine-applications/about-m2m/m2m…
clairekinde11 Sep 2, 2025
c54d977
Update m2m-faqs.mdx
clairekinde11 Sep 2, 2025
b4ff450
Merge pull request #553 from kinde-oss/Fix/Selfserveportal
clairekinde11 Sep 2, 2025
4f5c2a3
Added site map
alex72508 Sep 2, 2025
ddb98b9
Updates to security wall of fame
alex72508 Sep 3, 2025
0d0ef45
Updating timestamp
alex72508 Sep 3, 2025
9efcff8
Merge pull request #554 from kinde-oss/update-security-wall-of-fame
clairekinde11 Sep 3, 2025
66181de
Added page ID
clairekinde11 Sep 3, 2025
489c24c
Claire edit - images added.
clairekinde11 Sep 4, 2025
50f6556
Delete src/assets/design/custom_ui_app_01.png
clairekinde11 Sep 4, 2025
31ec322
Delete src/assets/design/custom_ui_app_02.png
clairekinde11 Sep 4, 2025
217a29a
Delete src/assets/design/custom_ui_default.png
clairekinde11 Sep 4, 2025
12b5d9f
Obscure the client ID
clairekinde11 Sep 4, 2025
ba41124
Merge pull request #545 from ahn-nath/patch-1
clairekinde11 Sep 4, 2025
4c22c5f
Update sidebar order
clairekinde11 Sep 4, 2025
c26cf44
Merge pull request #552 from kinde-oss/feat/M2M-FAQ
clairekinde11 Sep 5, 2025
2f4de5c
Merge pull request #555 from kinde-oss/Fix/Page-number-nav
clairekinde11 Sep 5, 2025
8195571
Update kinde-and-electron.mdx
clairekinde11 Sep 5, 2025
f4e1ded
Update src/content/docs/integrate/third-party-tools/kinde-and-electro…
clairekinde11 Sep 7, 2025
a883695
Merge pull request #550 from kinde-oss/Feat/KindeElectronGuide
clairekinde11 Sep 8, 2025
5297c4b
Update troubleshoot-user-import-errors.mdx
clairekinde11 Sep 9, 2025
2449d0d
Update import-users-from-auth0.mdx
clairekinde11 Sep 9, 2025
ff008d2
Update import-users-in-bulk.mdx
clairekinde11 Sep 9, 2025
be7fa31
Merge pull request #548 from kinde-oss/Feat/Import-DDJSON
clairekinde11 Sep 9, 2025
e4f80a5
Draft of move users between businesses
clairekinde11 Sep 9, 2025
7e45074
Update move-users.mdx
clairekinde11 Sep 9, 2025
e24e675
Update ref to verify API keys
clairekinde11 Sep 9, 2025
688cdb2
Update verify-api-keys-in-your-api.mdx
clairekinde11 Sep 9, 2025
338d094
Update src/content/docs/manage-your-apis/add-manage-api-keys/verify-a…
clairekinde11 Sep 10, 2025
21fab01
Update api-keys-overview.mdx
clairekinde11 Sep 10, 2025
088922a
Merge pull request #557 from kinde-oss/Fix/API-Keys-doc-improvement
clairekinde11 Sep 10, 2025
34158d9
Create send-invitations-webhook.mdx
clairekinde11 Sep 11, 2025
a7a5e12
Update src/content/docs/manage-users/add-and-edit/send-invitations-we…
clairekinde11 Sep 11, 2025
55ca438
Update send-invitations-webhook.mdx
clairekinde11 Sep 11, 2025
e2e040d
Update send-invitations-webhook.mdx
clairekinde11 Sep 11, 2025
6e205ca
Merge pull request #558 from kinde-oss/Feat/Send-invitations
clairekinde11 Sep 11, 2025
61c9297
Draft updated
clairekinde11 Sep 17, 2025
d3ba98c
Update src/content/docs/manage-users/add-and-edit/move-users.mdx
clairekinde11 Sep 17, 2025
9cc546f
Merge pull request #556 from kinde-oss/Feat/move-users-between-envs
clairekinde11 Sep 17, 2025
6efbce5
Merge branch 'main' into docs/llms-text-file
alex72508 Sep 18, 2025
a8e7707
Updating scripts to include frontmatter for each section and a README…
alex72508 Sep 18, 2025
37a26ba
Adding LLM script to the build scripts
alex72508 Sep 18, 2025
9d65b07
Update public/authenticate/multi-factor-auth/mfa-per-org.md
clairekinde11 Sep 18, 2025
da8b419
Update public/authenticate/about-auth/kinde-authentication-faq.md
clairekinde11 Sep 18, 2025
b9fa8b8
Removing original files from an older version of this branch
alex72508 Sep 18, 2025
e868cf1
Merge branch 'docs/llms-text-file' of https://github.com/kinde-oss/do…
alex72508 Sep 18, 2025
a06a07d
Updating LLM script to the build scripts
alex72508 Sep 18, 2025
fc1c91c
New workflow example - sync attributes with SAML assertions
clairekinde11 Sep 18, 2025
42bd97e
Update workflow-user-post-auth.mdx
clairekinde11 Sep 18, 2025
bd821a9
Merge pull request #561 from kinde-oss/feat/workflow-for-saml-assertion
clairekinde11 Sep 18, 2025
1d3c41d
Merge pull request #551 from kinde-oss/docs/llms-text-file
clairekinde11 Sep 18, 2025
c1d4460
Update enterprise-access-to-kinde.mdx
clairekinde11 Sep 18, 2025
ce95ab7
Update enterprise-access-to-kinde.mdx
clairekinde11 Sep 18, 2025
720cff0
Update mfa-for-kinde-access.mdx
clairekinde11 Sep 18, 2025
95fb132
Merge pull request #562 from kinde-oss/Fix/Enterprise-connection-for-…
clairekinde11 Sep 19, 2025
dd3d7f6
Update advanced-saml-configurations.mdx
clairekinde11 Sep 19, 2025
f3c124a
Update advanced-saml-configurations.mdx
clairekinde11 Sep 19, 2025
be9140b
Update for SLO
clairekinde11 Sep 19, 2025
677074d
Updated steps.
clairekinde11 Sep 19, 2025
d80e4b5
Date update
clairekinde11 Sep 19, 2025
e15b607
Add custom OAuth2 connection documentation
clairekinde11 Sep 19, 2025
ce0396f
First draft - OAuth2.0 connections
clairekinde11 Sep 19, 2025
0de214e
Added related topics
clairekinde11 Sep 19, 2025
0540a83
Update ref to OAuth custom
clairekinde11 Sep 19, 2025
3af001b
Update add-social-sign-in.mdx
clairekinde11 Sep 19, 2025
51004fd
Feedback fixes
clairekinde11 Sep 21, 2025
96446a4
Create about-self-service-portal.mdx
clairekinde11 Sep 21, 2025
6732752
Create self-serve-portal-for-orgs.mdx
clairekinde11 Sep 21, 2025
d3d897f
Update about-self-service-portal.mdx
clairekinde11 Sep 21, 2025
7bae75a
Update self-serve-portal-for-orgs.mdx
clairekinde11 Sep 21, 2025
4163123
Create self-serve-portal-for-users.mdx
clairekinde11 Sep 21, 2025
df6457d
Delete src/content/docs/build/set-up-options/about-self-serve-portal.mdx
clairekinde11 Sep 21, 2025
af67b65
Delete src/content/docs/build/set-up-options/self-serve-portal-for-or…
clairekinde11 Sep 21, 2025
f022deb
Delete src/content/docs/build/set-up-options/self-serve-portal-for-us…
clairekinde11 Sep 21, 2025
725de86
Update apply-branding-for-an-organization.mdx
clairekinde11 Sep 21, 2025
2b4ec0e
Link update
clairekinde11 Sep 21, 2025
f40960e
Link updates
clairekinde11 Sep 21, 2025
8a122b7
Update about-self-service-portal.mdx
clairekinde11 Sep 22, 2025
b76ca83
Link fix
clairekinde11 Sep 22, 2025
3ce6886
Update self-serve-portal-per-org.mdx
clairekinde11 Sep 22, 2025
fd06b02
Link update
clairekinde11 Sep 22, 2025
5c3d2b6
Fix broken self-serve portal links
clairekinde11 Sep 22, 2025
0091cd2
Update build.txt
clairekinde11 Sep 22, 2025
ffcc2de
Update authentication-faq.mdx
clairekinde11 Sep 22, 2025
f906d19
Update authentication-faq.mdx
clairekinde11 Sep 22, 2025
992b406
Update public/_llms-txt/billing.txt
clairekinde11 Sep 22, 2025
3502907
Fix broken links in authentication FAQ
clairekinde11 Sep 22, 2025
06943d6
Update authentication-faq.mdx
clairekinde11 Sep 22, 2025
fdf5f83
Merge pull request #566 from kinde-oss/Fix/Move-self-serve-portal-docs
clairekinde11 Sep 22, 2025
21df364
Update sidebarData.ts
clairekinde11 Sep 22, 2025
05c162b
Merge pull request #567 from kinde-oss/fix/self-serve-nav
clairekinde11 Sep 22, 2025
dc647a8
Merge pull request #564 from kinde-oss/Feat/Custom-OAuth2-connection
clairekinde11 Sep 22, 2025
e1151dc
minor edit
clairekinde11 Sep 24, 2025
37fae9d
Note about changing invoice details
clairekinde11 Sep 24, 2025
c8b8a11
Merge pull request #568 from kinde-oss/clairekinde11-patch-1
clairekinde11 Sep 24, 2025
b9da0a6
Remove stray H1
clairekinde11 Sep 24, 2025
729d18d
Merge pull request #569 from kinde-oss/fix/business-details
clairekinde11 Sep 24, 2025
f79b0cc
Merge pull request #570 from kinde-oss/Chore/Fix-heading-in-Auth-FAQ
clairekinde11 Sep 24, 2025
263e6b9
Update ref to sign into last org
clairekinde11 Sep 24, 2025
7b67779
New entry in security wall of fame
alex72508 Sep 24, 2025
9de2d11
Apply suggestion from @coderabbitai[bot]
clairekinde11 Sep 24, 2025
eca25e4
Update security-wall-of-fame.mdx
clairekinde11 Sep 24, 2025
0fdcabf
Merge pull request #572 from kinde-oss/update-security-wall-of-fame-2…
alex72508 Sep 24, 2025
54e8217
Merge pull request #571 from kinde-oss/Fix/Add-xref-to-org-switcher-a…
clairekinde11 Sep 24, 2025
aa43865
Add small section for passing login hint and connection ID
clairekinde11 Sep 24, 2025
07da33f
Merge pull request #573 from kinde-oss/Fix/minor-update-sveltekit
clairekinde11 Sep 24, 2025
fe8cca4
Merge pull request #563 from kinde-oss/fix/Single-Logout
clairekinde11 Sep 25, 2025
e04676f
Update entra-id-saml.mdx
clairekinde11 Sep 25, 2025
f80a5f3
Merge pull request #574 from kinde-oss/Fix/MS-Entra-ref-to-single-log…
clairekinde11 Sep 26, 2025
c5df92a
Revoke tokens info
clairekinde11 Sep 26, 2025
d88d65d
Merge pull request #575 from kinde-oss/Fix/revoke-tokens
clairekinde11 Sep 26, 2025
e2367a5
Update re XML certificate
clairekinde11 Sep 29, 2025
0519b45
Merge pull request #580 from kinde-oss/Fix/LastPass-comment
clairekinde11 Sep 29, 2025
8bc9769
Update about-enterprise-connections.mdx
clairekinde11 Sep 29, 2025
7518096
Merge pull request #581 from kinde-oss/Fix/Trusted-providers-note
clairekinde11 Sep 29, 2025
0f15a10
Update custom-oauth2-connection.mdx
clairekinde11 Sep 29, 2025
2d69227
Update custom-oauth2-connection.mdx
clairekinde11 Sep 30, 2025
58c83f8
Merge pull request #582 from kinde-oss/Fix/Add-OIDC-refs
clairekinde11 Sep 30, 2025
df243c1
Update update-kinde-payment.mdx
clairekinde11 Oct 1, 2025
3848753
Merge pull request #583 from kinde-oss/Chore/Add-card
clairekinde11 Oct 1, 2025
485165d
Minor edit
clairekinde11 Oct 1, 2025
3c42f32
Merge pull request #584 from kinde-oss/Fix/something
clairekinde11 Oct 1, 2025
acf49c3
Update email-authentication.mdx
clairekinde11 Oct 1, 2025
73c8a03
Merge pull request #585 from kinde-oss/Fix/Duplicate-IDs
clairekinde11 Oct 2, 2025
29be815
Heading change
clairekinde11 Oct 2, 2025
e7df810
Updates to ref custom data
clairekinde11 Oct 2, 2025
8d20801
Update organization-properties.mdx
clairekinde11 Oct 2, 2025
0790621
Updated refs to custom data
clairekinde11 Oct 2, 2025
610d5df
Update manage-properties.mdx
clairekinde11 Oct 2, 2025
ba69767
Update properties-in-tokens.mdx
clairekinde11 Oct 2, 2025
b2034a7
Update view-user-properties.mdx
clairekinde11 Oct 2, 2025
9b400bf
Update view-user-properties.mdx
clairekinde11 Oct 2, 2025
cd5fd28
Update properties-in-tokens.mdx
clairekinde11 Oct 2, 2025
240a789
Update index.mdx
clairekinde11 Oct 2, 2025
962dbd1
Update application-properties.mdx
clairekinde11 Oct 2, 2025
c991fd3
Update organization-properties.mdx
clairekinde11 Oct 2, 2025
ba8a034
Update add-and-manage-organizations.mdx
clairekinde11 Oct 2, 2025
f5871d3
Update src/content/docs/properties/about-properties/organization-prop…
clairekinde11 Oct 2, 2025
cb63e3e
Merge pull request #587 from kinde-oss/Fix/Create-org-via-API
clairekinde11 Oct 2, 2025
391f140
Merge pull request #586 from kinde-oss/Fix/Property-section-headings-…
clairekinde11 Oct 2, 2025
44d053a
Draft - new topic
clairekinde11 Oct 5, 2025
cb2df6e
ImageUpdates
clairekinde11 Oct 5, 2025
c5c078b
Update sidebarData.ts
clairekinde11 Oct 5, 2025
3d79e8b
Update customize-token-with-workflow.mdx
clairekinde11 Oct 5, 2025
37dfd85
Merge pull request #589 from kinde-oss/Feat/Workflow-tutorials
clairekinde11 Oct 5, 2025
f17eda0
Update CODEOWNERS.md
onderay Oct 8, 2025
3a49995
Update CODEOWNERS.md
onderay Oct 8, 2025
f6754eb
Update CODEOWNERS.md
onderay Oct 9, 2025
885a535
Updated security wall of fame
alex72508 Oct 15, 2025
b0be9e5
Open Update security wall of fame
onderay Oct 15, 2025
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
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions CODEOWNERS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
clairekinde11
danielrivers
DaveOrDead
* @kinde-oss/giants-kinde
240 changes: 240 additions & 0 deletions POST_BUILD_SCRIPTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
# Post-Build Scripts

This document explains the automated post-build scripts that run after every documentation build to generate LLM training files and update security configurations.

## Overview

The documentation site runs several post-build scripts automatically after each build to:

1. **Update Content Security Policy (CSP)** - Ensures security compliance for inline scripts
2. **Generate LLM Training Files** - Creates documentation files optimized for AI/LLM training

These scripts are integrated into the build process via the `postbuild` npm script and run automatically in CI/CD and local builds.

## Post-Build Scripts

### 1. CSP Update Script (`scripts/update-csp.js`)

**Purpose**: Updates Content Security Policy headers to allow inline scripts generated during the build process.

**What it does**:
- Scans all HTML files in the `dist/` directory for inline scripts
- Generates SHA256 hashes for each inline script
- Updates the CSP `script-src` directive in `customHttp.yml` with these hashes
- Ensures security compliance while allowing necessary inline scripts

**Output**: Updates `customHttp.yml` with new script hashes

### 2. LLM Generation Scripts

**Purpose**: Generate documentation files optimized for Large Language Model (LLM) training.

**Generated Files**:
- **`llms.txt`** - Main index file with links to all LLM documentation
- **`llms-abridged.txt`** - Compact version with frontmatter only (title, description, keywords, topics)
- **`llms-full.txt`** - Complete documentation with full content
- **Section-specific files** - Individual files for each documentation section

## LLM Generated Files

### Main Files (in `public/`)
- `llms.txt` - Index file with links to all LLM documentation
- `llms-abridged.txt` - Abridged documentation (frontmatter only)
- `llms-full.txt` - Complete documentation with full content

### Section Files (in `public/_llms-txt/`)
- `authenticate.txt` - Authentication documentation
- `billing.txt` - Billing and subscription management
- `build.txt` - Building applications on Kinde
- `developer-tools.txt` - Developer tools and APIs
- `get-started.txt` - Getting started guides
- `integrate.txt` - Third-party integrations
- `machine-to-machine-applications.txt` - M2M applications
- `manage-users.txt` - User management
- `manage-your-account.txt` - Account management
- `manage-your-apis.txt` - API management
- `properties.txt` - Custom properties
- `workflows.txt` - Workflow automation

## Build Integration

### Automatic Execution
All post-build scripts run automatically when you run:
```bash
npm run build
```

The build process follows this sequence:
1. **Astro build** - Generates the static site
2. **Post-build scripts** (automatic):
- `scripts/update-csp.js` - Updates CSP headers
- `scripts/generate-llms-txt-abridged.js` - Generates abridged LLM files
- `scripts/generate-llms-txt-full.js` - Generates complete LLM files
- `scripts/generate-llms-txt-sections.js` - Generates section-specific LLM files

### Package.json Configuration
```json
{
"scripts": {
"build": "astro build",
"postbuild": "node ./scripts/update-csp.js && node ./scripts/generate-llms-txt-abridged.js && node ./scripts/generate-llms-txt-full.js && node ./scripts/generate-llms-txt-sections.js"
}
}
```

## LLM Generation Scripts

### `scripts/generate-llms-txt-abridged.js`
Generates the abridged documentation file containing only frontmatter data:
- Extracts `title`, `description`, `keywords`, and `topics` from all MDX files
- Creates a compact format suitable for quick reference
- Output: `public/llms-abridged.txt`

### `scripts/generate-llms-txt-full.js`
Generates the complete documentation file with full content:
- Extracts frontmatter and complete content from all MDX files
- Formats page titles with folder paths (e.g., "Authenticate - About auth")
- Minifies content by removing line breaks
- Output: `public/llms-full.txt`

### `scripts/generate-llms-txt-sections.js`
Generates individual files for each top-level documentation section:
- Creates separate files for each section (authenticate, billing, etc.)
- Uses the same format as the full documentation
- Output: `public/_llms-txt/[section].txt`

## Manual Script Execution

### Prerequisites
- Node.js installed
- Dependencies installed (`npm install`)

### Run Individual Scripts
```bash
# Update CSP headers only
node scripts/update-csp.js

# Generate abridged documentation only
node scripts/generate-llms-txt-abridged.js

# Generate complete documentation only
node scripts/generate-llms-txt-full.js

# Generate section-specific files only
node scripts/generate-llms-txt-sections.js
```

### Run All Post-Build Scripts
```bash
# Run all post-build scripts manually
npm run postbuild
```

## File Formats

### Abridged Format
```
# Page Title
Page description
keyword1, keyword2, keyword3
topic1, topic2, topic3

# Next Page Title
Next page description
...
```

### Full Format
```
# Section - Page Title - Page Description
> Page description
keyword1, keyword2, keyword3
topic1, topic2, topic3
Full page content without line breaks...

# Next Section - Next Page Title - Next Page Description
...
```

## Source Data

All LLM files are generated from MDX files in `src/content/docs/`. The scripts:
1. Scan all `.mdx` files recursively
2. Extract frontmatter using the `gray-matter` library
3. Parse content and apply formatting rules
4. Write output files to the `public/` directory

## Dependencies

### CSP Update Script
- `cheerio` - HTML parsing and manipulation
- `crypto` - SHA256 hash generation
- `js-yaml` - YAML file parsing and writing
- Node.js `fs` and `path` modules

### LLM Generation Scripts
- `gray-matter` - Frontmatter parsing
- `glob` - File pattern matching
- Node.js `fs` and `path` modules

## Publishing

Files in the `public/` directory are automatically served by Astro at the root URL:
- `https://docs.kinde.com/llms.txt`
- `https://docs.kinde.com/llms-abridged.txt`
- `https://docs.kinde.com/llms-full.txt`
- `https://docs.kinde.com/_llms-txt/[section].txt`

## Maintenance

### Automatic Updates
All post-build scripts run automatically during:
- Local development builds (`npm run build`)
- CI/CD pipeline builds
- Production deployments

### Manual Updates
The `llms.txt` file is manually maintained and should be updated when:
- Adding new section files
- Changing file locations
- Updating descriptions or links

### When Scripts Run
- **CSP Update**: Every build (ensures security compliance)
- **LLM Generation**: Every build (keeps training data current)
- **Content Changes**: Automatically detected and processed

## Troubleshooting

### Common Issues
1. **Missing dependencies**: Run `npm install` to ensure all packages are available
2. **File not found errors**: Ensure MDX files exist in `src/content/docs/`
3. **Permission errors**: Check write permissions for the `public/` directory
4. **Empty output**: Verify MDX files have proper frontmatter structure
5. **CSP errors**: Check that `customHttp.yml` exists and is writable
6. **Build failures**: Scripts run in sequence - if one fails, subsequent scripts won't run

### Validation
After build completion, verify:
- **CSP Update**: Check `customHttp.yml` for updated script hashes
- **LLM Files**: All expected files are created in `public/` and `public/_llms-txt/`
- **File sizes**: Reasonable sizes (not empty or unusually large)
- **Content format**: Properly formatted with frontmatter
- **Links**: All links in `llms.txt` point to existing files

### Build Output
Successful build should show:
```
> documentation@0.0.1 postbuild
> node ./scripts/update-csp.js && node ./scripts/generate-llms-txt-abridged.js && node ./scripts/generate-llms-txt-full.js && node ./scripts/generate-llms-txt-sections.js

YAML configuration has been updated.
Abridged documentation created: public/llms-abridged.txt
Processed 392 files
Complete documentation created: public/llms-full.txt
Processed 392 files
Generating section documentation files...
Found 16 sections: authenticate, billing, build, contribute, design, developer-tools, get-started, integrate, machine-to-machine-applications, manage-users, manage-your-account, manage-your-apis, properties, releases, trust-center, workflows
...
All section documentation files have been generated in public/_llms-txt/
```
Loading