Skip to content

Starlight integration#1

Open
Definitly-Not-Me wants to merge 5 commits into
zane-lang:mainfrom
Definitly-Not-Me:starlight-integration
Open

Starlight integration#1
Definitly-Not-Me wants to merge 5 commits into
zane-lang:mainfrom
Definitly-Not-Me:starlight-integration

Conversation

@Definitly-Not-Me

Copy link
Copy Markdown

Summary of changes:

  • Switched the base website to astro/starlight template.
  • Switched default favicon and imgs to zanelang logo and zane-black
  • added link to compiler, specs and profile for future collaborators

All previous components have been kept but I didn't integrate them in the UI since there was no need.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the documentation site to use the @astrojs/starlight integration, removing custom layouts, styles, and the src/content/docs submodule in the process. It also introduces a shell.nix environment and a new logo asset. Feedback focuses on correcting the GitHub social link to point to the official organization repository, configuring the new logo in the Starlight integration, adding pnpm to the Nix shell packages, and addressing potential build errors caused by the lack of documentation files and obsolete routing components.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread astro.config.mjs
starlight({
title: 'Docs',
favicon: '/favicon.svg',
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/TheLazyCat00' }],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The social link for GitHub points to a personal profile (TheLazyCat00) instead of the official organization repository (zane-lang). It should be updated to point to the organization's GitHub page.

Suggested change
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/TheLazyCat00' }],
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/zane-lang' }],

Comment thread astro.config.mjs Outdated
Comment on lines +9 to +10
title: 'Docs',
favicon: '/favicon.svg',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The PR description mentions switching default images to the Zane logo (zane-black.svg), but the logo is not configured in the Starlight integration. Additionally, the title can be updated to 'Zane' or 'Zane Docs' to reflect the project name.

			title: 'Zane',
			logo: {
				src: './src/assets/zane-black.svg',
			},
			favicon: '/favicon.svg',

Comment thread shell.nix
Comment on lines +6 to +8
packages = with pkgs; [
nodejs
];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the project uses pnpm (as indicated by the .gitignore configuration), it would be beneficial to include pnpm in the shell.nix packages list so that developers using Nix have the correct package manager available automatically.

  packages = with pkgs; [
    nodejs
    pnpm
  ];

Comment thread src/content.config.ts
description: z.string().optional(),
}),
}),
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

With the removal of the src/content/docs submodule, there are currently no documentation files (markdown/MDX) in the repository. Starlight requires at least a home page (e.g., index.md or index.mdx) under the docs directory to build successfully and avoid routing errors.

Additionally, since Starlight handles routing and layouts automatically, old routing components like src/components/DocPage.astro (which still references the deleted DocsLayout.astro) are now obsolete and should be removed to prevent compilation errors.

@TheLazyCat00

Copy link
Copy Markdown
Member

i think we should just stick to devbox.

@TheLazyCat00

Copy link
Copy Markdown
Member

nvm, never had devbox

The README now specify how to run the website locally
while the config file now better reflect our
branding. Custom CSS file from previous website
couldn't be kept as they rendered poorly with
starlight.
A dedicated favicons folders has been added for
convenience under public/.
@Definitly-Not-Me

Copy link
Copy Markdown
Author
Image collée
  • Addressed some of the issue related to the config file;
  • Updated the README with a section about how to deploy locally;
  • Added a set of favicons in public/, should I consider making a pull requests to the logos repo? Let me know.
  • shell.nix was also added to .gitignore

@TheLazyCat00

Copy link
Copy Markdown
Member

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the website to use Astro's Starlight integration for documentation, removing custom layouts, components, and Sass styles. Feedback on these changes includes fixing a typo in the README, correcting the favicon and GitHub social link in astro.config.mjs to point to the correct project assets and organization, configuring the empty fields and missing icons in site.webmanifest, and removing now-unused dependencies like lucide-astro and sass.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread astro.config.mjs
starlight({
title: 'Zane Docs',
description: 'The Zane programming language',
favicon: '/favicons/favicon.ico',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The configured favicon path /favicons/favicon.ico does not exist in the repository. Please update it to point to an existing file, such as /favicons/zane-colorised.svg.

Suggested change
favicon: '/favicons/favicon.ico',
favicon: '/favicons/zane-colorised.svg',

Comment thread README.md
npm install
```

If everything went well you shoulb be able to deploy the website locally with:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in this line: 'shoulb' should be 'should'.

Suggested change
If everything went well you shoulb be able to deploy the website locally with:
If everything went well you should be able to deploy the website locally with:

Comment thread astro.config.mjs
src: './src/assets/zane-black.svg',
alt: 'Black version of Zane logo',
},
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/TheLazyCat00' }],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The GitHub social link currently points to a personal profile (TheLazyCat00) instead of the official Zane organization (zane-lang). Please update this to point to the official repository or organization.

Suggested change
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/TheLazyCat00' }],
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/zane-lang' }],

@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The webmanifest file contains empty name and short_name fields, and references non-existent icon files (/android-chrome-192x192.png and /android-chrome-512x512.png). Please configure these fields with correct values and point the icons to existing assets.

{"name":"Zane Docs","short_name":"Zane","icons":[{"src":"/favicons/zane-colorised.svg","sizes":"any","type":"image/svg+xml"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

Comment thread package.json
Comment on lines 16 to 23
"lucide-astro": "^0.556.0",
"sass": "^1.98.0",
"sharp": "^0.34.2",
"typescript": "^5.9.3"
},
"devDependencies": {
"sass-embedded": "^1.100.0"
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The dependencies lucide-astro, sass, and sass-embedded are no longer used in the project since the custom components and Sass styles have been removed in favor of Starlight. They should be removed from package.json to keep the project dependencies clean.

@TheLazyCat00

Copy link
Copy Markdown
Member
grafik

@Definitly-Not-Me

Copy link
Copy Markdown
Author

You have to npm install first.

@TheLazyCat00

Copy link
Copy Markdown
Member

I thought i did, but i'll recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants