@opentf/web-docs 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/build/blog-posts-plugin.js +127 -0
  2. package/build/docs-nav-plugin.js +17 -10
  3. package/build/feed.js +136 -0
  4. package/build/index.js +5 -0
  5. package/build/last-updated-plugin.js +98 -0
  6. package/build/last-updated.js +45 -0
  7. package/build/llms.js +156 -0
  8. package/build/pagefind.js +58 -0
  9. package/build/reading-time.js +16 -0
  10. package/components/BlogLayout.jsx +77 -0
  11. package/components/Breadcrumbs.jsx +30 -27
  12. package/components/Callout.jsx +7 -7
  13. package/components/Card.jsx +21 -0
  14. package/components/Cards.jsx +11 -0
  15. package/components/CodeBlock.jsx +39 -0
  16. package/components/DocsLayout.jsx +66 -6
  17. package/components/LastUpdated.jsx +22 -0
  18. package/components/NavIcon.jsx +34 -0
  19. package/components/Navbar.jsx +34 -22
  20. package/components/NavbarLink.jsx +33 -0
  21. package/components/Pagination.jsx +37 -33
  22. package/components/PostBanner.jsx +25 -0
  23. package/components/PostCard.jsx +19 -0
  24. package/components/PostList.jsx +17 -0
  25. package/components/PostMeta.jsx +28 -0
  26. package/components/ReadingTime.jsx +6 -0
  27. package/components/Search.jsx +211 -0
  28. package/components/SearchTrigger.jsx +14 -3
  29. package/components/Sidebar.jsx +111 -9
  30. package/components/SidebarNode.jsx +1 -0
  31. package/components/SidebarToggle.jsx +47 -0
  32. package/components/Steps.jsx +14 -0
  33. package/components/Tabs.jsx +4 -2
  34. package/components/ThemeToggle.jsx +150 -25
  35. package/components/Tooltip.jsx +19 -0
  36. package/components/format.js +11 -0
  37. package/config.js +28 -2
  38. package/index.js +29 -2
  39. package/nav-virtual.js +6 -4
  40. package/package.json +15 -1
  41. package/posts-virtual.js +17 -0
  42. package/theme/index.css +1034 -58
  43. package/updated-virtual.js +10 -0
  44. package/components/CodeGroup.jsx +0 -28
@@ -0,0 +1,10 @@
1
+ // Fallback for `@opentf/web-docs/updated`.
2
+ //
3
+ // When `lastUpdatedPlugin` is active (registered when a project opts into
4
+ // `docs.lastUpdated` / `blog.lastUpdated`), it intercepts this specifier and replaces
5
+ // it with a build-time map of `{ [routePath]: ISO-8601 }` — the last-updated time of
6
+ // each page, from git or a frontmatter override. This file is loaded only when the
7
+ // plugin is NOT active, in which case the map is empty and the UI omits the line.
8
+
9
+ export const editPaths = {};
10
+ export default {};
@@ -1,28 +0,0 @@
1
- // Grouped code blocks behind tabs (e.g. npm / pnpm / bun install commands).
2
- // `items` is an array of `{ label, content }` where content is typically a fenced
3
- // code block (already highlighted at build time by the MDX front-end).
4
-
5
- export default function CodeGroup(props) {
6
- let active = $state(0);
7
- const items = props.items || [];
8
-
9
- return (
10
- <div class="otfw-codegroup">
11
- <div class="otfw-codegroup-tabs" role="tablist">
12
- {items.map((it, i) => (
13
- <button
14
- class={active === i ? "otfw-codegroup-tab otfw-active" : "otfw-codegroup-tab"}
15
- onclick={() => (active = i)}
16
- >
17
- {it.label}
18
- </button>
19
- ))}
20
- </div>
21
- {items.map((it, i) => (
22
- <div class={active === i ? "otfw-codegroup-panel" : "otfw-codegroup-panel otfw-hidden"}>
23
- {it.content}
24
- </div>
25
- ))}
26
- </div>
27
- );
28
- }