diff --git a/src/components/WikiFooter.astro b/src/components/WikiFooter.astro index 120f2e6..924f154 100644 --- a/src/components/WikiFooter.astro +++ b/src/components/WikiFooter.astro @@ -1,5 +1,6 @@ --- import Default from '@astrojs/starlight/components/Footer.astro'; +import WikiMotion from './WikiMotion.astro'; --- + diff --git a/src/components/WikiHead.astro b/src/components/WikiHead.astro index 8bb6a49..52e320a 100644 --- a/src/components/WikiHead.astro +++ b/src/components/WikiHead.astro @@ -1,5 +1,10 @@ --- import Default from '@astrojs/starlight/components/Head.astro'; +import { ClientRouter } from 'astro:transitions'; +import interFont from '@fontsource-variable/inter/files/inter-latin-wght-normal.woff2?url'; +import archivoFont from '@fontsource-variable/archivo/files/archivo-latin-wght-normal.woff2?url'; +import monoFont from '@fontsource-variable/geist-mono/files/geist-mono-latin-wght-normal.woff2?url'; +import serifFont from '@fontsource/instrument-serif/files/instrument-serif-latin-400-italic.woff2?url'; import { componentEmbed, previewForEntry, previewImageUrl, serializeComponentEmbed } from '../lib/discordPreview.mjs'; const preview = previewForEntry(Astro.locals.starlightRoute.entry); @@ -8,6 +13,18 @@ const embed = serializeComponentEmbed(componentEmbed(preview, Astro.url.pathname --- + +{[interFont, archivoFont, monoFont, serifFont].map(font => )} + diff --git a/src/components/WikiHeader.astro b/src/components/WikiHeader.astro index a89cbd5..b79ba63 100644 --- a/src/components/WikiHeader.astro +++ b/src/components/WikiHeader.astro @@ -1,4 +1,4 @@ -
+
Craft Wiki
- + + diff --git a/src/components/WikiPageTitle.astro b/src/components/WikiPageTitle.astro index 3f4ab22..5d1f313 100644 --- a/src/components/WikiPageTitle.astro +++ b/src/components/WikiPageTitle.astro @@ -1,4 +1,19 @@ --- import Default from '@astrojs/starlight/components/PageTitle.astro'; +import { appVisuals } from '../data/appVisuals.mjs'; +const slug = Astro.url.pathname.match(/^\/apps\/([^/]+)(?:\/|$)/)?.[1]; +const app = slug && appVisuals[slug]; --- -{Astro.url.pathname !== '/' && } +{Astro.url.pathname !== '/' && (app + ?
+ : )} + + diff --git a/src/components/WikiSidebar.astro b/src/components/WikiSidebar.astro index 4e4fd38..33729a9 100644 --- a/src/components/WikiSidebar.astro +++ b/src/components/WikiSidebar.astro @@ -4,7 +4,7 @@ import WikiGuideLinks from './WikiGuideLinks.astro'; const pathname = Astro.url.pathname; const appBySlug = Object.fromEntries(apps.map((app) => [app[0], app])); --- -
+
All documentation @@ -40,6 +40,23 @@ const appBySlug = Object.fromEntries(apps.map((app) => [app[0], app])); const groups = document.querySelectorAll('.wiki-app-group'); const labels = document.querySelectorAll('.wiki-sidebar-label, .wiki-sidebar-category'); const noResults = document.querySelector('#wiki-no-results'); + function updateCurrentPage() { + const path = location.pathname; + document.querySelector('.wiki-home-link')?.classList.toggle('active', path === '/'); + document.querySelectorAll('.wiki-guide-links a').forEach(link => { + const active = link.pathname === path; + if (active) { + link.setAttribute('aria-current', 'page'); + let parent = link.parentElement; + while (parent && !parent.classList.contains('wiki-sidebar-inner')) { + if (parent instanceof HTMLDetailsElement) parent.open = true; + parent = parent.parentElement; + } + } else link.removeAttribute('aria-current'); + }); + } + document.addEventListener('astro:page-load', updateCurrentPage); + updateCurrentPage(); search?.addEventListener('input', () => { const query = search.value.trim().toLowerCase(); let visible = 0; diff --git a/src/components/WikiThemeProvider.astro b/src/components/WikiThemeProvider.astro index 424a0c7..f66250e 100644 --- a/src/components/WikiThemeProvider.astro +++ b/src/components/WikiThemeProvider.astro @@ -1,7 +1,9 @@ diff --git a/src/content/docs/apps/artcraft-studio/overview.md b/src/content/docs/apps/artcraft-studio/overview.md index ee2c9ee..024bf6e 100644 --- a/src/content/docs/apps/artcraft-studio/overview.md +++ b/src/content/docs/apps/artcraft-studio/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![ArtCraft Studio logo](/assets/apps/artcraft-studio.svg) - ArtCraft Studio is a desktop app for making images, video, audio and 3D with AI models. You can start from a prompt, or build the scene first: lay out images on a 2D canvas, or pose characters, props and a camera on a 3D stage, then generate from that. It runs on Windows, macOS and Linux. It is open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note diff --git a/src/content/docs/apps/cadcraft/overview.md b/src/content/docs/apps/cadcraft/overview.md index 20210e9..0645ab3 100644 --- a/src/content/docs/apps/cadcraft/overview.md +++ b/src/content/docs/apps/cadcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![CADCraft logo](/assets/apps/cadcraft.webp) - CADCraft is a computer-aided design app for 2D drafting. If you have used a desktop CAD program, it will feel familiar: you type commands such as `LINE` or `CIRCLE` at the command line, click points, and use object snaps, layers, dimensions, hatches and blocks. It opens and saves DXF and DWG drawings, and runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::caution[Pre-alpha] diff --git a/src/content/docs/apps/craft-anything/overview.md b/src/content/docs/apps/craft-anything/overview.md index 006fbc8..bda4bd5 100644 --- a/src/content/docs/apps/craft-anything/overview.md +++ b/src/content/docs/apps/craft-anything/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![Craft Anything logo](/assets/apps/craft-anything.webp) - Craft Anything studies a website, a desktop or phone app, a game or a file with real inspection tools, then has a coding agent on your computer build your own version and checks it against the original. It is free and open source (MIT or Apache-2.0), written in Rust, and runs on Windows, macOS, Linux and FreeBSD. :::note[Early alpha] diff --git a/src/content/docs/apps/deckcraft/overview.md b/src/content/docs/apps/deckcraft/overview.md index 2e76358..3b4a224 100644 --- a/src/content/docs/apps/deckcraft/overview.md +++ b/src/content/docs/apps/deckcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![DeckCraft logo](/assets/apps/deckcraft.webp) - DeckCraft is an app for making presentations and giving slide shows. If you have used a modern presentation app, it will feel familiar: the ribbon, slide layouts, themes, transitions, animations and presenter view are all there. It opens and saves .pptx files, and runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha] diff --git a/src/content/docs/apps/designcraft/overview.md b/src/content/docs/apps/designcraft/overview.md index 9910c6e..14203b4 100644 --- a/src/content/docs/apps/designcraft/overview.md +++ b/src/content/docs/apps/designcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![DesignCraft logo](/assets/apps/designcraft.webp) - DesignCraft is a page layout and publishing app, for magazines, brochures, books, posters and anything else made of pages. If you have used InDesign, it will feel familiar: the tools, menus, panels and most shortcuts are where you expect them. It runs on Windows, macOS, Linux and FreeBSD, and in a web browser. It is free and open source (MIT or Apache-2.0), with no subscription, licence server or telemetry, and is made by the ArtCraft team. :::caution[Pre-alpha] diff --git a/src/content/docs/apps/effectcraft/overview.md b/src/content/docs/apps/effectcraft/overview.md index 08e5ad8..5ea6c02 100644 --- a/src/content/docs/apps/effectcraft/overview.md +++ b/src/content/docs/apps/effectcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![EffectCraft logo](/assets/apps/effectcraft.webp) - EffectCraft is an app for animated titles, motion graphics and compositing. You build a composition from layers (solids, shapes, text, footage and other compositions), animate their properties with keyframes, add effects, and render the result as a video. If you have used After Effects, it will feel familiar: the panels, menus and shortcuts follow it. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha] diff --git a/src/content/docs/apps/figcraft/overview.md b/src/content/docs/apps/figcraft/overview.md index 491fb50..8e3c85e 100644 --- a/src/content/docs/apps/figcraft/overview.md +++ b/src/content/docs/apps/figcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![FigCraft logo](/assets/apps/figcraft.webp) - FigCraft is an app for designing interfaces: app screens, websites, dashboards and design systems. You lay out frames, build reusable components, wire screens together into a clickable prototype, and hand the result to developers. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha] diff --git a/src/content/docs/apps/filmcraft/overview.md b/src/content/docs/apps/filmcraft/overview.md index 06f2236..7e6b17c 100644 --- a/src/content/docs/apps/filmcraft/overview.md +++ b/src/content/docs/apps/filmcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![FilmCraft logo](/assets/apps/filmcraft.webp) - FilmCraft is a non-linear video editor. If you have used a professional editor before, it will feel familiar: Source and Program monitors, bins, a multi-track timeline, workspaces and the usual editing keys are all there. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha] diff --git a/src/content/docs/apps/gridcraft/overview.md b/src/content/docs/apps/gridcraft/overview.md index 71aa2d2..813eadb 100644 --- a/src/content/docs/apps/gridcraft/overview.md +++ b/src/content/docs/apps/gridcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![GridCraft logo](/assets/apps/gridcraft.webp) - GridCraft is a spreadsheet app for working with numbers and data. If you have used a modern spreadsheet app, it will feel familiar: the ribbon, formula bar, Name Box, sheet tabs, tables, charts and pivot tables are all there. It opens and saves .xlsx files, and runs on Windows, macOS, Linux and FreeBSD. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha] diff --git a/src/content/docs/apps/lightcraft/overview.md b/src/content/docs/apps/lightcraft/overview.md index dbb6de9..c30d73e 100644 --- a/src/content/docs/apps/lightcraft/overview.md +++ b/src/content/docs/apps/lightcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![LightCraft logo](/assets/apps/lightcraft.webp) - LightCraft is a photo library and raw developer. You import photos, sort them with ratings, flags and albums, and edit them without ever changing the original files. If you have used a photo library app such as Lightroom, it will feel familiar, and it can import your Lightroom Classic catalog. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. There is no account, no cloud, no telemetry and no subscription. Your photos and your library stay on your computer. diff --git a/src/content/docs/apps/materialcraft/overview.md b/src/content/docs/apps/materialcraft/overview.md index 797e4d2..918f920 100644 --- a/src/content/docs/apps/materialcraft/overview.md +++ b/src/content/docs/apps/materialcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![MaterialCraft logo](/assets/apps/materialcraft.webp) - MaterialCraft is a node-based material designer. You build a material by connecting nodes in a graph, watch it update in a 2D view and on a 3D model, and export its maps (base colour, normal, roughness, metallic, height and so on) for a game engine or a 3D app. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::caution[Early and changing fast] diff --git a/src/content/docs/apps/pdfcraft/overview.md b/src/content/docs/apps/pdfcraft/overview.md index 15cc4bc..91f50f2 100644 --- a/src/content/docs/apps/pdfcraft/overview.md +++ b/src/content/docs/apps/pdfcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![PdfCraft logo](/assets/apps/pdfcraft.webp) - PdfCraft is an app for working with PDF files. You can read them, search them, add comments, reorder and combine pages, fill in and sign forms, and protect them with a password. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It works offline, with no account and no telemetry. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha] diff --git a/src/content/docs/apps/photocraft/overview.md b/src/content/docs/apps/photocraft/overview.md index 6a7b053..0b2b701 100644 --- a/src/content/docs/apps/photocraft/overview.md +++ b/src/content/docs/apps/photocraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![PhotoCraft logo](/assets/apps/photocraft.webp) - PhotoCraft is an image editor for photos and artwork. It has layers, masks, adjustment layers, layer styles, type, vector shapes, brushes and filters, and it opens and saves layered PSD files. The menus, panels, tools and shortcuts are laid out the way most professional image editors lay them out, so if you have used one, you will find your way around. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Early alpha] diff --git a/src/content/docs/apps/solidcraft/overview.md b/src/content/docs/apps/solidcraft/overview.md index dcfec20..cc5d196 100644 --- a/src/content/docs/apps/solidcraft/overview.md +++ b/src/content/docs/apps/solidcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![SolidCraft logo](/assets/apps/solidcraft.png) - :::note[Third-Party Application] SolidCraft is an independent, community-developed application created and maintained by **Tangency Labs** and the SolidCraft contributors. It is not developed or officially maintained by ArtCraft, but is part of the broader Craft ecosystem. ::: diff --git a/src/content/docs/apps/soundcraft/overview.md b/src/content/docs/apps/soundcraft/overview.md index 2458653..9e8e53a 100644 --- a/src/content/docs/apps/soundcraft/overview.md +++ b/src/content/docs/apps/soundcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![SoundCraft logo](/assets/apps/soundcraft.webp) - SoundCraft is a digital audio workstation (DAW) for recording, editing and mixing audio. It follows the workflow audio engineers already know: an **Edit** window for arranging and editing, a **Mix** window for balancing, edit modes, tools, playlists and memory locations. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::caution[Pre-alpha] diff --git a/src/content/docs/apps/texturecraft/overview.md b/src/content/docs/apps/texturecraft/overview.md index 05b43d6..738600e 100644 --- a/src/content/docs/apps/texturecraft/overview.md +++ b/src/content/docs/apps/texturecraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![TextureCraft logo](/assets/apps/texturecraft.webp) - TextureCraft is a 3D texture painting app. You load a 3D model, paint materials straight onto it in layers with masks, bake mesh maps, and export the textures for a game engine or another 3D app. If you have used a modern texture painting app, the layout will feel familiar: texture sets, a layer stack, smart materials, a tool shelf, and side-by-side 3D and 2D views. It runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[In active development] diff --git a/src/content/docs/apps/vectorcraft/overview.md b/src/content/docs/apps/vectorcraft/overview.md index 65ca786..65b0c98 100644 --- a/src/content/docs/apps/vectorcraft/overview.md +++ b/src/content/docs/apps/vectorcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![VectorCraft logo](/assets/apps/vectorcraft.webp) - VectorCraft is a vector illustration app. If you have used a professional vector editor before, it will feel familiar: the Pen, Direct Selection, Pathfinder, Smart Guides, and the Appearance, Swatches and Layers panels are all there, in the places and on the shortcuts you'd expect. It runs on Windows, macOS, Linux and FreeBSD, and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha] diff --git a/src/content/docs/apps/wordcraft/overview.md b/src/content/docs/apps/wordcraft/overview.md index c119a01..d8021d3 100644 --- a/src/content/docs/apps/wordcraft/overview.md +++ b/src/content/docs/apps/wordcraft/overview.md @@ -5,8 +5,6 @@ sidebar: order: 0 --- -![WordCraft logo](/assets/apps/wordcraft.webp) - WordCraft is a word processor for writing and designing documents. If you have used a modern word processor, it will feel familiar: the ribbon, styles, tables, track changes, references and mail merge are all there. It opens and saves .docx files, and runs on Windows, macOS, Linux, FreeBSD and in a web browser. It is free and open source (MIT or Apache-2.0), and made by the ArtCraft team. :::note[Alpha]