This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the user documentation site for the Open Science Portal (OSP), maintained by the Open Science Branch of Fisheries and Oceans Canada. It's a bilingual (English/French) static documentation site built with VuePress 2.
Live site: https://osp-pso-docs.ent.dfo-mpo.ca/
pnpm installpnpm run docs:dev
# Runs on http://localhost:3000pnpm docs:build
# Outputs to docs/.vuepress/distThe project maintains parallel English/French content with locale-specific configurations:
- English content:
docs/en/ - French content:
docs/fr/ - Locales configured in:
docs/.vuepress/config.ts(lines 15-28) - Sidebar navigation:
docs/.vuepress/configs/sidebar/en.ts(English)docs/.vuepress/configs/sidebar/fr.ts(French)
Both language versions share the same structure:
general/- Getting started, portal navigation, ORCID, settings, troubleshootingfeatures/- Author explorer, publication explorerpublication-process/- Manuscript records, management review, publications
Main config: docs/.vuepress/config.ts
- Uses Vite bundler
- Default theme with custom navbar/sidebar per locale
- Search plugin configured for both languages
- Port: 3000
Configuration modules:
docs/.vuepress/configs/index.ts- Exports head, sidebarsdocs/.vuepress/configs/head.ts- Meta tags, faviconsdocs/.vuepress/configs/sidebar/- Sidebar definitions per locale
Static assets: docs/.vuepress/public/
favicons/- Site iconsimages/- Documentation imageslogos/- Logo assets
When editing documentation:
- Bilingual changes: Update both
docs/en/anddocs/fr/in parallel - Navigation updates: Modify both sidebar configs (
en.tsandfr.ts) - Images: Place in
docs/.vuepress/public/images/and reference as/images/filename.ext
- Main branch:
main(all PRs target this branch) - Commit format: Use Conventional Commits
- Types:
build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test - Format:
<type>[optional scope]: <description>
- Types:
- Node.js v18.19.0+
- pnpm v9.4.0+ (specified in package.json: 10.8.0)
- Code: MIT License
- Documentation content: Open Government Licence - Canada (Crown Copyright)