Skip to content

Commit

Permalink
feat: new template and doc updates (#233)
Browse files Browse the repository at this point in the history
* New Requirements templates

added a new template  for solution requirements

* Update config.yaml

Fixed spelling

* feat: add performance recommendations to the docs (#231)

* feat: add performance recommendations to the docs

* refactor: grammar

* refactor: update theme version to latest after merge

---------

Co-authored-by: John R. Harris <[email protected]>
Co-authored-by: Travis Pawley <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2024
1 parent f94be13 commit 0a4ec0d
Show file tree
Hide file tree
Showing 30 changed files with 221 additions and 7 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ presidium-hugo
presidium
dist/
.DS_Store
resources/

dist/
docs/resources
14 changes: 14 additions & 0 deletions docs/content/best-practices/general-performance-guidelines.md
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
4 changes: 2 additions & 2 deletions docs/content/reference/markdown/side-by-side-conten.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Side By Side Content
weight: 10
---

A shortcode is available (`{{</* sidebyside */>}}`) in order to have content, within a single file, in two different columns that are side by side.
A shortcode is available (`{{%/* sidebyside */%}}`) in order to have content, within a single file, in two different columns that are side by side.

Create side-by-side content by using the following:

Expand All @@ -19,4 +19,4 @@ Content you want on the right hand side of the site
{{% /sidebyside %}}
```

> **Note**: `--split-content--` is where the content is to be split between left and right. Without this keyword the site will fail to render the two columns correctly
> **Note**: `--split-content--` is where the content is to be split between left and right. Without this keyword the site will fail to render the two columns correctly
2 changes: 1 addition & 1 deletion docs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module presidium

go 1.18

require github.com/spandigital/presidium-theme-website v2.12.4+incompatible // indirect
require github.com/spandigital/presidium-theme-website v2.17.13+incompatible // indirect
2 changes: 2 additions & 0 deletions docs/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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=

This file was deleted.

This file was deleted.

83 changes: 83 additions & 0 deletions templates/requirements/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
languageCode: "en-us"
title: "{{ .Title }}"
copyright: Template Footer
pluralizelisttitles: false
params:
sortByFilePath: true
markup:
goldmark:
renderer:
Unsafe: true
parser:
attribute:
block: true
highlight:
style: github
menu:
main:
- identifier: overview
name: Overview
url: /
weight: 1
- identifier: archetypes-and-personas
name: Archetypes and Personas
url: /archetypes-and-personas/
weight: 2
- identifier: entities-and-relationships
name: Entities and Relationships
url: /entities-and-relationships/
weight: 3
- identifier: state-transitions
name: State Transitions
url: /state-transitions/
weight: 4
- identifier: features-and-functions
name: Features and Functions
url: /features-and-functions/
weight: 5
- identifier: process-flows
name: Process Flows
url: /process-flows/
weight: 6
- identifier: capabilities
name: Capabilities
url: /capabilities/
weight: 7
- identifier: reference
name: Reference
url: /reference/
weight: 8
- identifier: updates
name: Updates
url: /updates/
weight: 9
outputFormats:
MenuIndex:
baseName: menu
mediaType: application/json
SearchMap:
baseName: searchmap
mediaType: application/json
outputs:
home:
- HTML
- RSS
- MenuIndex
- SearchMap
module:
imports:
{{ if .Brand -}}
- path: {{ .Brand }}
mounts:
- source: assets
target: assets
- source: static
target: static
{{- end }}
- path: {{ .Theme }}
enableInlineShortcodes: true
frontmatter:
lastmod:
- lastmod
- :fileModTime
- :default
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Archetypes and Personas
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: A Persona (Archetype)
author: author
---
Content...
16 changes: 16 additions & 0 deletions templates/requirements/content/capabilities/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Capabilities
---

Capabilities, or non-functional requirements, are quantifiable attributes of the solution that define the overall fitness for purpose of the solution. Common capabilities include

Performance
Reliability
Security
Usability
Maintainability
Scalability
Verifiability
Interoperability

While all these capabilities are desirable only a few need to be targeted for most solutions. Knowing which are important and defining target values for your solution is vitally important
6 changes: 6 additions & 0 deletions templates/requirements/content/capabilities/capability.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: A capability
author: author
---

Content...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Entities and Relationships
---

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Entity Relationship Diagram
author: author
---
Content...
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: An Entity
author: author
---
Entity Definition

Relationships

...
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Features
---

The highest level functionality of the system. Each feature covers a major area of functionality
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: feature 1
author: author
---
Feature definition ....
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: A Function
author: author
---

4 changes: 4 additions & 0 deletions templates/requirements/content/overview/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Overview
url: /
---
16 changes: 16 additions & 0 deletions templates/requirements/content/overview/hello.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: "Hello Presidium!"
---

This template project provides a basic structure to start your presidium module.

For recipes and help on creating your content, see: [presidium.spandigital.net](http://presidium.spandigital.net)
for detailed examples.

# Heading 1
## My Table

One | Two | Three
--|---|--
| |
| |
3 changes: 3 additions & 0 deletions templates/requirements/content/process-flows/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Process Flows
---
5 changes: 5 additions & 0 deletions templates/requirements/content/process-flows/process-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: A Process Flow
author: author
---
Content...
3 changes: 3 additions & 0 deletions templates/requirements/content/reference/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Reference
---
5 changes: 5 additions & 0 deletions templates/requirements/content/reference/reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: A Reference
author: author
---
Content...
3 changes: 3 additions & 0 deletions templates/requirements/content/state-transitions/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: State Transition Model
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: State Transition Model
author: author
---
Content...
3 changes: 3 additions & 0 deletions templates/requirements/content/updates/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Updates
---
5 changes: 5 additions & 0 deletions templates/requirements/content/updates/update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: An Update
author: author
---
Content...
3 changes: 3 additions & 0 deletions templates/requirements/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/spandigital/{{ .ProjectName }}

go 1.16

0 comments on commit 0a4ec0d

Please sign in to comment.