tauri-docs icon indicating copy to clipboard operation
tauri-docs copied to clipboard

feat: Migrates `i18ntracker` to `Lunaria`

Open dreyfus92 opened this issue 1 year ago • 4 comments

What kind of changes does this PR include?

  • Changes to the docs site code

Description

  • What does this PR change? Give us a brief description. Migrates i18ntracker package to use lunaria as default. This will offload maintenance of the i18ntracker and enhance a bit more the the current state of the tracker's UI.

[!NOTE] Encountered an issue where Lunaria couldn't track the git history of certain files used in generating Tauri documentation. This is due to these files being fetched via a git submodule, which isn't reflected in the project's main git history.

Implemented a temporary fix in the Lunaria config to bypass this issue:

"ignore": [
  "src/content/docs/references/{v1,v2}/(js/**/*|config).{md,mdx}"
]

This change prevents Lunaria from tracking these files, thus avoiding the error. We'll explore a more permanent solution that maintains the necessary git history for seamless documentation generation in the future.

  • Did you change something visual? A before/after screenshot can be helpful.
Before After
Before After

dreyfus92 avatar Feb 13 '24 20:02 dreyfus92

Deploy Preview for tauri-docs-starlight ready!

Built without sensitive environment variables

Name Link
Latest commit a05ff978e7877919e2f99c4fcf68ccf4ef7a7491
Latest deploy log https://app.netlify.com/sites/tauri-docs-starlight/deploys/65cbfeeaa0f9af0008279758
Deploy Preview https://deploy-preview-1854--tauri-docs-starlight.netlify.app/contribute/translate-status
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Feb 13 '24 20:02 netlify[bot]

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@lunariajs/[email protected] Transitive: environment, filesystem, shell, unsafe +33 4.6 MB yanthomasdev

View full report↗︎

socket-security[bot] avatar Feb 13 '24 20:02 socket-security[bot]

Are there any new developments? The current i18n page display is incomplete. I gave it a try in a local environment. Screenshot below

af

GuoJikun avatar Apr 08 '24 08:04 GuoJikun

@GuoJikun, we're still waiting to handle most of the missing docs and current structure to handle this one.

dreyfus92 avatar Apr 08 '24 19:04 dreyfus92

Gonna close this to migrate it to the new version of the docs.

dreyfus92 avatar May 17 '24 22:05 dreyfus92