-
Notifications
You must be signed in to change notification settings - Fork 81
Big Docs Updates Branch #683
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
Changes from 47 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
a0f8f81
update all dependencies
bryantgillespie 693035f
add packageManager back
bryantgillespie 40b762b
remove hardcoded url
bryantgillespie 12e54f4
wip
bryantgillespie fb43401
cleanup from review
bryantgillespie 2e61cb1
cleanup again
bryantgillespie 1c08e8b
switch to json for storing redirects
bryantgillespie f785c96
convert to ts
bryantgillespie 23d0e7f
cleanup
bryantgillespie 94d9c40
ai cleanup
bryantgillespie c8949ec
Update README.md
bryantgillespie 4e55dfb
backfill all ids
bryantgillespie 0c01c40
feat(nav): rename Connect→APIs, Automate→Flows, Manage→Hosting
bryantgillespie fb26a69
feat(llms): rename guide section titles to APIs and Flows
bryantgillespie 853c5b3
docs: replace branded "Directus Connect"/"Directus Automate" with API…
bryantgillespie 5411aef
docs(homepage): drop Data Engine/Data Studio framing
bryantgillespie 0548d61
fix: fold 11.integrations into 12.integrations to clear numeric colli…
bryantgillespie 8d9a727
fix sidebar
bryantgillespie e1a7980
docs(nav): rename Guides→Guide, Hosting→Deploy
bryantgillespie 2064fcb
kill editor and explorer
bryantgillespie d6971b0
initial moves
bryantgillespie bf3949e
wippity
bryantgillespie 13fa1e4
cleanup
bryantgillespie 5d04c17
fix nav
bryantgillespie 8e6cdb2
extract findNavNode
bryantgillespie 1b1f78c
vanilla to vanilla js
bryantgillespie 91eec5c
fix claude bs
bryantgillespie 3039cb3
oops technologies is needed for the imaages
bryantgillespie 45877f7
add chips to tutorials with framworks
bryantgillespie 997dbc8
more cleanup
bryantgillespie 1c32969
All Frameworks
bryantgillespie 7e35e8e
feat(layout): redesign docs experience
bryantgillespie 459d1ad
feat(layout): add prompt and shader debug components
bryantgillespie 62c0b4e
fix(layout): restore reference content and skip API prerender
bryantgillespie 747cfe3
fix(build): stop masking prerender errors
bryantgillespie e7e1665
feat(layout): use Directus docs typography
bryantgillespie 8c19d67
fix(build): inline unhead for preview
bryantgillespie 79aea9c
chore(layout): remove unused legacy helpers
bryantgillespie e17931d
Clean up docs navigation and icons
bryantgillespie 56ee43f
fix layous
bryantgillespie 0697c99
Update Railway tutorial image
bryantgillespie 30b9c2c
Merge origin/main
bryantgillespie 90cffc0
Skip base-prefixed API prerender
bryantgillespie cb79938
fix(build): lazy-load OAS spec to reduce prerender memory
bryantgillespie 510ac87
increase concurrency
bryantgillespie 45bbfb2
fix icon
bryantgillespie 88890e0
feat(hero): painterly Kuwahara shader with fade-up painting layer
bryantgillespie e4ec734
Fix suggestions
LZylstra dd67526
Docs Updates #6 - Add Typesense docs search (#685)
bryantgillespie ca58772
Docs Updates #7 - MCP Server (#686)
bryantgillespie c7cbe38
Merge origin/main
bryantgillespie 47a89b9
Fix pnpm setup in search workflow
bryantgillespie 013c54f
Reduce prerender concurrency
bryantgillespie e294f82
Merge branch 'main' into bry/dockem-5-layout-changes
bryantgillespie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,67 @@ | ||
| <script setup lang="ts"> | ||
| import type { ContentNavigationItem } from '@nuxt/content'; | ||
| import { spec } from '@directus/openapi'; | ||
|
|
||
| const { data: navigation } = useAsyncData('content-navigation', () => queryCollectionNavigation('content', ['title', 'description', 'icon', 'links'])); | ||
| const { data: navigation } = await useAsyncData('content-navigation', () => queryCollectionNavigation('content', ['title', 'description', 'icon', 'links'])); | ||
|
|
||
| provide('openapi', spec); | ||
| provide('navigation', navigation as Ref<ContentNavigationItem[]>); | ||
|
|
||
| defineOgImage('Default', { | ||
| title: 'Directus Docs', | ||
| }); | ||
|
|
||
| if (import.meta.client) { | ||
| const router = useRouter(); | ||
|
|
||
| function getHashTarget(hash: string) { | ||
| const id = decodeURIComponent(hash.replace(/^#/, '')); | ||
| return document.getElementById(id) ?? document.querySelector(hash) as HTMLElement | null; | ||
| } | ||
|
|
||
| function scrollToHash(hash: string) { | ||
| const scroller = document.getElementById('docs-scroll'); | ||
| const target = getHashTarget(hash); | ||
| if (!target) return false; | ||
|
|
||
| if (scroller) { | ||
| scroller.scrollTo({ top: Math.max(0, target.offsetTop - 80), behavior: 'smooth' }); | ||
| } | ||
| else { | ||
| window.scrollTo({ top: Math.max(0, target.offsetTop - 80), behavior: 'smooth' }); | ||
| } | ||
| return true; | ||
| } | ||
|
|
||
| router.options.scrollBehavior = async (to, from, savedPosition) => { | ||
| const scroller = document.getElementById('docs-scroll'); | ||
| const scrollTarget = scroller ?? window; | ||
|
|
||
| if (savedPosition) { | ||
| scrollTarget.scrollTo(savedPosition.left ?? 0, savedPosition.top ?? 0); | ||
| return; | ||
| } | ||
|
|
||
| if (to.hash) { | ||
| await nextTick(); | ||
| requestAnimationFrame(() => scrollToHash(to.hash)); | ||
| return false; | ||
| } | ||
|
|
||
| if (to.path !== from.path) { | ||
| await nextTick(); | ||
| scrollTarget.scrollTo(0, 0); | ||
| } | ||
| }; | ||
| } | ||
| </script> | ||
|
|
||
| <template> | ||
| <UApp> | ||
| <NuxtLoadingIndicator color="var(--color-primary)" /> | ||
| <DocsBanner /> | ||
| <DocsHeader /> | ||
| <UMain> | ||
| <NuxtLayout> | ||
| <NuxtPage /> | ||
| </NuxtLayout> | ||
| </UMain> | ||
| <DocsFooter /> | ||
| <div | ||
| id="docs-scroll" | ||
| class="h-screen min-w-0 overflow-y-auto overflow-x-hidden scroll-smooth" | ||
| > | ||
| <DocsShell /> | ||
| </div> | ||
| </UApp> | ||
| </template> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.