Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import remarkStripEmojis from './src/lib/remark/stripEmojis.js';
import remarkTableDataLabels from './src/lib/remark/tableDataLabels.js';
import remarkInlineMarkdownInHtml from './src/lib/remark/inlineMarkdownInHtml.js';
import rehypeTableWrapper from './src/lib/rehype/tableWrapper.js';
import { WORKSHOP_SLUGS } from './src/lib/workshop/config.ts';

/**
* Creates blog authors config with GitHub profile pictures
Expand Down Expand Up @@ -298,7 +297,7 @@ export default defineConfig({
exclude: ({ file, link }) =>
file.includes('/src/generated/workshop-markdown/')
&& link.includes('?__gh_aw_workshop_local__=')
&& WORKSHOP_SLUGS.some((slug) => link.startsWith(`/gh-aw/workshops/${slug}/`)),
&& link.startsWith('/gh-aw/workshop/?__gh_aw_workshop_local__='),
})
],
sidebar: [
Expand Down
3 changes: 1 addition & 2 deletions docs/scripts/sync-workshop-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const outputFile = join(generatedDir, 'workshop-content.ts');
const workshopRepo = process.env.GH_AW_WORKSHOP_REPO || 'githubnext/gh-aw-workshop';
const workshopRef = process.env.GH_AW_WORKSHOP_REF || 'main';
const localWorkshopSourceDir = process.env.GH_AW_WORKSHOP_SOURCE_DIR;
const workshopOrgSlug = process.env.GH_AW_WORKSHOP_ORG_SLUG || '2026-07-24-hackathon-blue-bat-18';
const workshopLocalLinkPrefix = `/gh-aw/workshops/${workshopOrgSlug}/?__gh_aw_workshop_local__=`;
const workshopLocalLinkPrefix = `/gh-aw/workshop/?__gh_aw_workshop_local__=`;
const publicWorkshopBase = `https://github.com/${workshopRepo}`;
const publicWorkshopTreeUrl = `${publicWorkshopBase}/tree/${workshopRef}/workshop`;
const publicWorkshopBlobBaseUrl = `${publicWorkshopBase}/blob/${workshopRef}/workshop/`;
Expand Down
7 changes: 1 addition & 6 deletions docs/src/components/workshop/WorkshopExperience.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import {
} from '../../lib/workshop/manifest';
import { workshopContent, workshopSource, type WorkshopContentEntry } from '../../generated/workshop-content.ts';

interface Props {
org: string;
}

const { org } = Astro.props;

type WorkshopEntry = {
id: string;
Expand Down Expand Up @@ -45,7 +40,7 @@ type WorkshopMarkdownModule = {

const workshopGithubBase = workshopSource.githubBaseUrl;
const workshopImageBase = workshopSource.rawBaseUrl;
const workshopLocalLinkPrefix = `/gh-aw/workshops/${org}/?__gh_aw_workshop_local__=`;
const workshopLocalLinkPrefix = `/gh-aw/workshop/?__gh_aw_workshop_local__=`;
const workshopMarkdownModules = import.meta.glob('../../generated/workshop-markdown/*.md', { eager: true }) as Record<string, WorkshopMarkdownModule>;
const primerIcons = octicons as Record<string, { toSVG: (options: Record<string, string | number>) => string }>;

Expand Down
3 changes: 1 addition & 2 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import FeatureGrid from '../../components/FeatureGrid.astro';
import Video from '../../components/Video.astro';
import BlogLinkSection from '../../components/BlogLinkSection.astro';
import WorkflowHero from '../../components/WorkflowHero.astro';
import { CURRENT_WORKSHOP_SLUG } from '../../lib/workshop/config';

<WorkflowHero />

Expand Down Expand Up @@ -203,7 +202,7 @@ Create custom agentic workflows directly from the GitHub web interface using nat
## Workshop

<FeatureGrid columns={2}>
<FeatureCard icon="workflow" title="Interactive workshop" href={`/gh-aw/workshops/${CURRENT_WORKSHOP_SLUG}/`} badge="New">
<FeatureCard icon="workflow" title="Interactive workshop" href="/gh-aw/workshop/" badge="New">
Choose a terminal, browser, or Copilot path and work through the workshop directly in the docs with saved progress.
</FeatureCard>
<FeatureCard icon="mark-github" title="Source repository" href="https://github.com/githubnext/gh-aw-workshop">
Expand Down
11 changes: 1 addition & 10 deletions docs/src/lib/workshop/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
/**
* All workshop slugs, ordered newest-first, in the form `YYYY-MM-DD-org-name`.
* Add a new entry at the top of the array for each new workshop.
*/
export const WORKSHOP_SLUGS = [
'2026-07-24-hackathon-blue-bat-18',
] as const;

/** The slug for the current (latest) active workshop. */
export const CURRENT_WORKSHOP_SLUG = WORKSHOP_SLUGS[0];
// Workshop configuration — no per-org slugs; the workshop is served at /workshop/.
Comment thread
mnkiefer marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
---
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
import WorkshopExperience from '../../components/workshop/WorkshopExperience.astro';
import { WORKSHOP_SLUGS } from '../../lib/workshop/config';

export function getStaticPaths() {
return WORKSHOP_SLUGS.map((org) => ({ params: { org } }));
}

const { org } = Astro.params;
if (!org) throw new Error('Workshop route: missing org param');
---

<StarlightPage
Expand All @@ -19,7 +11,7 @@ if (!org) throw new Error('Workshop route: missing org param');
tableOfContents: false,
}}
>
<WorkshopExperience org={org} />
<WorkshopExperience />
</StarlightPage>

<style>
Expand Down
3 changes: 1 addition & 2 deletions docs/tests/workshop.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { expect, test, type Page } from '@playwright/test';
import { CURRENT_WORKSHOP_SLUG } from '../src/lib/workshop/config';

const WORKSHOP_URL = `/gh-aw/workshops/${CURRENT_WORKSHOP_SLUG}/`;
const WORKSHOP_URL = `/gh-aw/workshop/`;
const PIXEL_TOLERANCE = 1;
const ZEN_MODE_MOBILE_BREAKPOINT = 800;

Expand Down
Loading