Skip to content
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

Astro: Fix broken links + various changes #45

Merged
merged 9 commits into from
Jun 22, 2024
Merged

Astro: Fix broken links + various changes #45

merged 9 commits into from
Jun 22, 2024

Conversation

SakuraIsayeki
Copy link
Member

Fixes #44.

The line endings in the `FileSystemVaultTests` file were changed from `\n` to `\r\n`. This commit fixes the assertions that compare string values to use the correct line endings.
- Updated assertion messages to use Environment.NewLine instead of "\r\n"
This commit adds support for canonical paths in the routing table of the VaultManifestClient class. Now, when processing files with a .md extension, the code checks if the file path matches a specific regex pattern and handles it accordingly. If the file path ends with .md, it extracts the canonical path by removing the .md extension. If the file path also matches another regex pattern, it further modifies the canonical path before adding it to the routing table. This change improves how files are processed and stored in the routing table of VaultManifestClient.

Mitigates #44.
- Update the version of astro from "^4.5.10" to "^4.11.0"
- Update the version of sass from "^1.72.0" to "^1.77.6"
- Update the version of sharp from "^0.33.3" to "^0.33.4"
The site URL has been updated to 'https://moltenobsidian.dev' and the base URL has been changed to '/'. This ensures that the website is correctly configured for deployment.
This commit improves the handling of the routing table in the `VaultManifestClient` class.

- Imporved support for index files (`index.md`, `readme.md`) in the routing table
- Fixed a bug where index file was duplicated on root
- Refactored the code to improve the detection of active links in the NavLink component.
- Added support for detecting index notes and vault folder titles as active links.
- Normalized the path detection by removing leading slashes and optional "index" or "readme" suffixes on index notes
The code change removes the unnecessary assignment of props in the BaseHead component. The defaultProps object is now directly destructured to retrieve the title and description values. This simplifies the code and improves readability.
@SakuraIsayeki SakuraIsayeki self-assigned this Jun 22, 2024
@SakuraIsayeki SakuraIsayeki merged commit 7cf5c7a into main Jun 22, 2024
6 checks passed
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.

Astro: Broken folder index pages navigation
1 participant