Update Hugo configuration and development shell

This commit is contained in:
Gabriel Arazas 2023-03-24 13:29:44 +08:00
parent 91b4d517d2
commit f6dc3b07f4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 16 additions and 2 deletions

View File

@ -1,13 +1,15 @@
# frozen_string_literal: true
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'asciidoctor' gem 'asciidoctor'
gem 'asciidoctor-bibtex' gem 'asciidoctor-bibtex'
gem 'asciidoctor-foodogsquared-extensions', path: './gems'
gem 'asciidoctor-html5s' gem 'asciidoctor-html5s'
gem 'asciidoctor-rouge' gem 'asciidoctor-rouge'
gem 'asciidoctor-tabs', github: 'asciidoctor/asciidoctor-tabs' gem 'asciidoctor-tabs', github: 'asciidoctor/asciidoctor-tabs'
gem 'asciidoctor-interdoc-reftext' gem 'asciidoctor-interdoc-reftext'
gem 'rouge' gem 'rouge'
gem 'rubocop' gem 'rubocop'
gem 'asciidoctor-foodogsquared-extensions', :path => './gems'
group :development do group :development do
gem 'ruby-lsp', require: false gem 'ruby-lsp', require: false

View File

@ -6,6 +6,7 @@ paginate = 40
copyright = "© foodogsquared" copyright = "© foodogsquared"
canonifyURLs = true canonifyURLs = true
summaryLength = 0 summaryLength = 0
timeZone = "UTC"
[[module.imports]] [[module.imports]]
path = "github.com/foo-dogsquared/hugo-theme-more-contentful" path = "github.com/foo-dogsquared/hugo-theme-more-contentful"
@ -19,6 +20,7 @@ extensions = [
"asciidoctor-tabs", "asciidoctor-tabs",
"asciidoctor-bibtex", "asciidoctor-bibtex",
] ]
trace = true
workingFolderCurrent = true workingFolderCurrent = true
[markup.asciidocExt.attributes] [markup.asciidocExt.attributes]
@ -28,6 +30,15 @@ sectanchors = true
source-highlighter = "rouge" source-highlighter = "rouge"
allow-uri-read = true allow-uri-read = true
experimental = true experimental = true
linkcss = true
# asciidoctor-bibtex
bibtex-file = "./assets/bibliography.bib"
bibtex-order = "alphabetical"
bibtex-throw = true
# asciidoctor-tabs
tabs-sync-option = true
[author.foo-dogsquared] [author.foo-dogsquared]
name = "Gabriel Arazas" name = "Gabriel Arazas"
@ -94,7 +105,7 @@ section = ["HTML", "ATOM", "RSS", "JSON"]
mainSections = ["posts", "projects"] mainSections = ["posts", "projects"]
toc = true toc = true
extraNotes = """ extraNotes = """
This site uses [medium-zoom](https://github.com/francoischalifour/medium-zoom), and lots of modern CSS features for the life of me. This site uses [medium-zoom](https://github.com/francoischalifour/medium-zoom) and lots of modern CSS features for the life of me.
For analytics, it uses [GoatCounter](https://goatcounter.com/). For analytics, it uses [GoatCounter](https://goatcounter.com/).
""" """

View File

@ -23,6 +23,7 @@ mkShell {
openring openring
gnumake gnumake
tree-sitter tree-sitter
(tree-sitter.withPlugins (_: tree-sitter.allGrammars))
# Formatters... # Formatters...
rufo # ...for Ruby. rufo # ...for Ruby.