Skip to content

Commit

Permalink
⚡ update exampleSite config
Browse files Browse the repository at this point in the history
  • Loading branch information
colinwilson committed Aug 23, 2023
1 parent c5fe743 commit 9570dc7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 45 deletions.
45 changes: 28 additions & 17 deletions exampleSite/data/landing.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
# Note: Template blocks require a 'weight' parameter so they're correctly ordered on the landing page

# Hero
hero:
enable: true
weight: 10

backgroundImage:
path: "images/templates/hero"
filename:
desktop: "gradient-desktop.webp"
mobile: "gradient-mobile.webp"

# badge:
# text: v0.0.2
# color: primary # primary, secondary, success, danger, warning, info, light, dark
# pill: false # boolean
# soft: true # boolean

title: "Example Site"
subtitle: A lightweight, **modern documentation** theme for Hugo. Easily customised for building **fast**, **secure**, and **SEO-friendly** documentation sites.

# titleLogo:
# path: "images/logos"
# filename: "title_logo.png"
# alt: "Lotus Docs Logo"
# height: 80px

title: "Lotus Docs"
subtitle: A lightweight, **modern documentation** theme for Hugo. Easily customised for building **fast**, **secure**, and **SEO-friendly** documentation sites.

image:
path: "images" # path to image under configured assets directory. default 'images'
filename: "lotus_docs_screenshot.png" # filename of your hero image (including file extension)
Expand All @@ -27,7 +36,7 @@ hero:
ctaButton:
icon: rocket_launch
btnText: "Get Started"
url: "/docs"
url: "/docs/quickstart/"
cta2Button:
icon: construction
btnText: "In Development"
Expand All @@ -38,9 +47,10 @@ hero:
# Features Grid
features:
enable: true
weight: 20

title: Why choose Lotus Docs?
subtitle: Lotus Docs is a simple yet highly configurable Hugo theme. With Lotus Docs' default configuration you can deploy and publish documentation in a matter of minutes.
subtitle: Lotus Docs is a highly configurable Hugo documentation theme. Yet, with the default configuration you can deploy and publish your documentation site in a matter of minutes. Check out some core features below.

items:
- title: Fast
Expand Down Expand Up @@ -69,7 +79,7 @@ features:

- title: Search by DocSearch
icon: search
description: Search your docs with DocSearch. A powerful, efficient and accessible search solution built on Algolia Crawler & Autocomplete. TBC.
description: Search your docs with DocSearch. A powerful, efficient and accessible search solution built on Algolia Crawler & Autocomplete.

- title: Multilingual Support
icon: translate
Expand All @@ -82,9 +92,10 @@ features:
# Image compare
image_compare:
enable: true
weight: 30

title: Customise The Lotus Docs Appearance
subtitle: Much of Lotus Docs' appearance can be customised. Dark mode is optional (enabled by default) and you can choose a Google font that suites you via a single config setting.
subtitle: Much of Lotus Docs' appearance can be customised. Dark mode is optional (enabled by default) and you can choose a Google font that suites you via the config parameters.

items:
- title: Dark Mode
Expand All @@ -100,25 +111,25 @@ image_compare:
}
}
imagePath: "images/screenshots"
imageBefore: "lotusdocs_dark.webp"
imageAfter: "lotusdocs_light.webp"
imageBefore: "lotusdocs_dark_v0.8.webp"
imageAfter: "lotusdocs_light_v0.8.webp"

- title: Custom Fonts
config: {
controlColor: "#3C4257",
startingPoint: 38,
startingPoint: 25,
addCircle: true,
addCircleBlur: false,
showLabels: true,
labelOptions: {
before: 'Poppins',
after: 'Comic Neue',
before: 'Inter',
after: 'Life Saver',
onHover: false
}
}
imagePath: "images/screenshots"
imageBefore: "lotusdocs_poppins.webp"
imageAfter: "lotusdocs_comic_neue_.webp"
imageBefore: "lotusdocs_google_font_demo_inter_screenshot.webp"
imageAfter: "lotusdocs_google_font_demo_lifesavers_screenshot.webp"

- title: Accent Color
config: {
Expand All @@ -128,10 +139,10 @@ image_compare:
showLabels: true,
labelOptions: {
before: 'Blue',
after: 'Emerald',
after: 'Cardinal',
onHover: false
}
}
imagePath: "images/screenshots"
imageBefore: "lotusdocs_blue.webp"
imageAfter: "lotusdocs_emerald.webp"
imageBefore: "lotusdocs_blue_theme_colour.webp"
imageAfter: "lotusdocs_cardinal_theme_colour.webp"
58 changes: 30 additions & 28 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ defaultContentLanguage = 'en'

[params.footer]
copyright = "© :YEAR: Lotus Labs. Built with [**Lotus Docs**](https://github.com/colinwilson/lotusdocs)"
version = true # includes git commit info
# version = true # includes git commit info

[params.social]
github = "" # YOUR_GITHUB_ID or YOUR_GITHUB_URL
Expand Down Expand Up @@ -114,37 +114,39 @@ defaultContentLanguage = 'en'
# searchSectionsIndex = []

[params.docsearch] # Parameters for DocSearch
# appID = "O2QIOCBDAK" # Algolia Application ID
# apiKey = "fdc60eee76a72a35d739b54521498b77" # Algolia Search-Only API (Public) Key
# indexName = "prod_lotusdocs.dev" # Index Name to perform search on (or set env variable HUGO_PARAM_DOCSEARCH_indexName)
# appID = "" # Algolia Application ID
# apiKey = "" # Algolia Search-Only API (Public) Key
# indexName = "" # Index Name to perform search on (or set env variable HUGO_PARAM_DOCSEARCH_indexName)

[params.analytics] # Parameters for Analytics (Google, Plausible)
# plausibleURL = "/docs/s" # (or set via env variable HUGO_PARAM_ANALYTICS_plausibleURL)
# plausibleAPI = "/docs/s" # optional - (or set via env variable HUGO_PARAM_ANALYTICS_plausibleAPI)
# plausibleDomain = "lotusdocs.dev" # (or set via env variable HUGO_PARAM_ANALYTICS_plausibleDomain)

[params.feedback]
# enabled = true
# analytics = "plausible"
# positiveEventName = "Positive Feedback"
# negativeEventName = "Negative Feedback"
# positiveFormTitle = "What did you like?"
# negativeFormTitle = "What went wrong?"
# successMsg = "Thank you for helping to improve Lotus Docs' documentation!"
# errorMsg = "Sorry! There was an error while attempting to submit your feedback!"
# positiveForm = [
# ["Accurate", "Accurately describes the feature or option."],
# ["Solved my problem", "Helped me resolve an issue."],
# ["Easy to understand", "Easy to follow and comprehend."],
# ["Something else"]
# ]
# negativeForm = [
# ["Inaccurate", "Doesn't accurately describe the feature or option."],
# ["Couldn't find what I was looking for", "Missing important information."],
# ["Hard to understand", "Too complicated or unclear."],
# ["Code sample errors", "One or more code samples are incorrect."],
# ["Something else"]
# ]
# plausibleDomain = "" # (or set via env variable HUGO_PARAM_ANALYTICS_plausibleDomain)

# [params.feedback]
# enabled = true
# emoticonTpl = true
# eventDest = ["plausible","google"]
# emoticonEventName = "Feedback"
# positiveEventName = "Positive Feedback"
# negativeEventName = "Negative Feedback"
# positiveFormTitle = "What did you like?"
# negativeFormTitle = "What went wrong?"
# successMsg = "Thank you for helping to improve Lotus Docs' documentation!"
# errorMsg = "Sorry! There was an error while attempting to submit your feedback!"
# positiveForm = [
# ["Accurate", "Accurately describes the feature or option."],
# ["Solved my problem", "Helped me resolve an issue."],
# ["Easy to understand", "Easy to follow and comprehend."],
# ["Something else"]
# ]
# negativeForm = [
# ["Inaccurate", "Doesn't accurately describe the feature or option."],
# ["Couldn't find what I was looking for", "Missing important information."],
# ["Hard to understand", "Too complicated or unclear."],
# ["Code sample errors", "One or more code samples are incorrect."],
# ["Something else"]
# ]

[menu]
[[menu.primary]]
Expand Down

0 comments on commit 9570dc7

Please sign in to comment.