Skip to content

experimental: resolve sitemap section from nav data #1544

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cm-ayf
Copy link
Member

@cm-ayf cm-ayf commented May 3, 2025

本当にこれでいいのか疑問が残るので draft です.

@cm-ayf cm-ayf requested review from phenylshima, Ryocat and Copilot May 3, 2025 09:40
@cm-ayf cm-ayf self-assigned this May 3, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request removes the standalone sitemapSections module and migrates sitemap configuration into the navigation YAML files to drive sitemap section behavior directly from the nav data.

  • Removed the obsolete SitemapSection interface and related data.
  • Added a sitemap configuration block (with keys such as section and parent) to both Japanese and English navigation files.

Reviewed Changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.

File Description
src/data/sitemapSections.ts Removed the outdated sitemapSections data and interface.
src/data/nav/ja.yml Added sitemap configuration to relevant nav items for Japanese.
src/data/nav/en.yml Added sitemap configuration to relevant nav items for English.
Files not reviewed (4)
  • src/components/pages/Sitemap.astro: Language not supported
  • src/data/schemas/nav.json: Language not supported
  • src/layouts/Footer/Navigation.astro: Language not supported
  • src/layouts/Header/Navigation.astro: Language not supported
Comments suppressed due to low confidence (1)

src/data/sitemapSections.ts:1

  • Ensure that all components or functions previously relying on the SitemapSection interface are now correctly using the nav YAML sitemap configuration, as this removal could lead to broken references.
export interface SitemapSection {

Copy link

github-actions bot commented May 3, 2025

🚀 Deployed on https://deploy-preview-1544--utelecon.netlify.app

@cm-ayf cm-ayf force-pushed the 202505-nav-sitemap branch from 9cf1432 to b845e70 Compare May 3, 2025 09:47
@seieric seieric added the web-development Tasks of web-development category label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-development Tasks of web-development category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants