-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add performance recommendations to the docs (#231)
* feat: add performance recommendations to the docs * refactor: grammar
- Loading branch information
Showing
7 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ presidium-hugo | |
presidium | ||
dist/ | ||
.DS_Store | ||
resources/ | ||
|
||
dist/ |
14 changes: 14 additions & 0 deletions
14
docs/content/best-practices/general-performance-guidelines.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: General Performance Guidelines | ||
weight: 7 | ||
--- | ||
|
||
For Presidium to support the functionality it has built on top of Hugo there are some performance considerations to take into account so that build times can remain reasonable. Below are some steps that can be taken to help with overall build performance: | ||
|
||
- Keep total markdown content to 50MB or less, this should result in a build time of around one minute, but this cannot be guaranteed due to other factors | ||
|
||
- Content spread across multiple files is more performant that having fewer files with more content | ||
|
||
- Less content per markdown file is encouraged, this also supports Presidium's philosophy of small micro-articles | ||
|
||
- While project dependent multiple directories with single a `_index.md` file has better build performance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github.com/spandigital/presidium-theme-website v1.4.4 h1:wydDhPjR59vBKrVPfjHjtkkGHBjvtlv0hZBaPvbVP0U= | ||
github.com/spandigital/presidium-theme-website v1.4.4/go.mod h1:j3bm9aRciRtJxAcI/x57I0iWZqXOjFYYsAxNaSagdQY= | ||
github.com/spandigital/presidium-theme-website v2.17.13+incompatible h1:uzzv1ZZzW8S4LLgJ2h90a31/HAWEdlbqmGTs26qbKQM= | ||
github.com/spandigital/presidium-theme-website v2.17.13+incompatible/go.mod h1:8fTL83SigfxCino9GI0yWCVPuWVdUP7o4wfDVgChJCU= |
3 changes: 0 additions & 3 deletions
3
docs/resources/_gen/assets/scss/presidium.scss_48b060fe05b0a273d182ef83c0605941.content
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
docs/resources/_gen/assets/scss/presidium.scss_48b060fe05b0a273d182ef83c0605941.json
This file was deleted.
Oops, something went wrong.