Skip to content

Simplify output of docs pages for navigation#116

Open
Hans5958 wants to merge 5 commits intoVocaDB:mainfrom
Hans5958:layout/simplify-out
Open

Simplify output of docs pages for navigation#116
Hans5958 wants to merge 5 commits intoVocaDB:mainfrom
Hans5958:layout/simplify-out

Conversation

@Hans5958
Copy link
Contributor

@Hans5958 Hans5958 commented Feb 8, 2026

The pages variable used in navigation (was the getDocsPaths() function, now just merged into one file after refactor) has unused data (such as the page body/content) that is included in all pages with navigation.

Simplifying the variable to only included used properties would result in smaller page size. As a proof, the build size went from 639 MB to 84.0 MB (86.9% decrease).

Before After

Also, I did some refactoring, mainly to convert blog terms into documentation terms.

@Hans5958 Hans5958 force-pushed the layout/simplify-out branch 2 times, most recently from 99e5215 to 7dee84a Compare February 8, 2026 11:56
The output of this function has unused data (such as the page body/content) that is included in all pages. Simplifying the output to only included used properties would result in smaller page size.
A little bit of renaming from blog terms into docs terms. Also merge function that is used only once.
@Hans5958 Hans5958 force-pushed the layout/simplify-out branch from b0caac0 to 1ee3fe2 Compare February 9, 2026 06:44
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.

1 participant