DeFi Scholar — Documentation Website (Hugo)
The DeFi Scholar repository contains a static documentation/blog site built with Hugo using the Book theme (github.com/alex-shpak/hugo-book). The site content lives under content/, configuration is in hugo.toml, and generated output is in public/, while Hugo Pipes artifacts live in resources/. Both public/ and resources/ are re-generated on each build and are kept in Git in this repository.
Live site
- Production URL: https://markurusov1.github.io/defischolar_site/
- Hugo (extended) v0.111+ recommended. Download: https://gohugo.io/installation/
- Go 1.20+ (required for Hugo Modules, used to fetch the theme)
- Git
- Detailed installation instructions
-
Clone the repository
git clone https://github.com/markurusov1/defischolar_site.git cd defischolar_site
-
Fetch Hugo modules (theme and assets)
hugo mod get -u -
Run the development server
# include drafts (-D) if you want to preview draft content hugo server -D
- Local site: http://localhost:1313/
-
Build for production
hugo
- The static output goes to
public/. - Hugo also updates
resources/for processed assets (Hugo Pipes).
- The static output goes to
hugo.toml— Site configuration (base URL, theme module, params)content/— Markdown content for docs, posts, and examplescontent/docs/— Documentation pages (shortcodes, sections, examples)content/posts/— Blog posts
layouts/— Layout overrides/partials for the themeassets/— Custom assets (e.g., JS/CSS) processed by Hugo Pipespublic/— Generated site output (committed here for GitHub Pages)resources/— Hugo Pipes/cache and processed assets (auto-generated each build; committed in this repo)go.mod,go.sum— Hugo Modules configuration for the theme
This site uses the Book theme via Hugo Modules. Key settings (see hugo.toml):
baseURL = 'https://markurusov1.github.io/defischolar_site/'
languageCode = 'en-us'
title = 'DeFi Scholar'
[module]
[[module.imports]]
path = 'github.com/alex-shpak/hugo-book'
[params]
# Options: "light" | "dark" | "auto" (default)
BookTheme = "auto"
[markup.goldmark.renderer]
unsafe = true- The base URL is set to the GitHub Pages URL in
hugo.toml. - Build locally with
hugoto updatepublic/. - Commit and push changes on
main(or your deployment branch) so GitHub Pages serves the updatedpublic/.- Note: This repository keeps both
public/andresources/tracked in Git. After building, commit changes in both directories as they are regenerated by Hugo.
- Note: This repository keeps both
- Theme: Hugo Book — https://github.com/alex-shpak/hugo-book
- Static site generator: Hugo — https://gohugo.io/
- Code (everything in this repository except where noted, e.g., files under
content/): MIT License. SeeLICENSE. - Content (materials under
content/, including text and images unless otherwise noted): Creative Commons Attribution 4.0 International (CC BY 4.0). SeeLICENSE-CONTENT. - Theme: This site uses the Hugo Book theme via Hugo Modules. See the theme’s repository for its license: https://github.com/alex-shpak/hugo-book
- Third‑party assets remain under their respective licenses.