Tract: A Hugo theme for ambitious documentation projects
lucperkins.dev
lucperkins.dev
"Bigot" is likely not the word you are looking for here - it generally has the connotation of someone who looks down or discriminates against those they consider lesser, e.g. racists or sexists. Maybe "champion" or "fanatic"?
Remember, you need to write JavaScript anyway..it's probably far more productive to go all the way.
https://greglobinski.github.io/gatsby-starter-kit-docs/class...
Gatsbyjs is not a dynamic application. It is a React-based framework to generate static sites. Pretty much exactly like Hugo - except that Hugo uses Go templating and Gatsbyjs uses React.
If you open the link i gave, it would solve the problem you needed to solve (and also get nice animations if you are so inclined).
The other advantage is that in the future if you want to build a dynamic application, you can continue where you left off. You dont have to rewrite in another framework. Its React all the way down.
Gatsby is a React based static website generator.
Why React? Because there's A LOT of developers familiar with it. Why Gatsby? Has a ton of plugins and starter kits. It's also super simple to use along with modern CMSes like Ghost, Netlify, Contentful, Tina, etc.
> That's what it was developed for
React's official website recommends using Gatsby if you're building a static website.
I agree that aesthetics are absolutely CRUCIAL and this will be a MAJOR focus of the project.
You can see this in action here: https://github.com/tract-docs/tract-docs.dev/blob/master/con....
Anchor.js — Provides nice clickable/linkable anchors for Markdown content
Almost 6K minified to do something that the browser can do natively?... I know I've been out of frontend for almost three years but I'm still confused :D
[1]: antora.org
[0] https://github.com/riboseinc/jekyll-theme-open-project
[1] See, for example, https://www.rnpgp.com/
See (for example) this: https://practicaltypography.com/line-length.html
For a documentation thing like this, I’d generally recommend avoiding a separate scrolling pane for the primary content, but rather arranging so that it can use the document’s scrolling element. This gets the scrollbar in the place people generally expect it in web things, and makes it work regardless of whether the JS loads.
I'm still looking for something that let me define a top-root level index for documentation of several products (much like https://learn.adafruit.com/) but found none (also Jekyll-based). I rolled my own based on Hugo but my CSS-formatting and HTML-generating skills are those from a firmware developer :)
How hard would it be for a casual user to add some search capabilities ? IMO, that's a key point to have.
I've used Hugo in the past for a few sites, but the amount of boilerplate required, even though minimal, is a bit of a hurdle for an internal wiki.
Has anyone been here? Suggestions?
It's great, the directory structure is straightforward and even supports search (through lunr.js) out of the box.
For some reason the author dismissed it, but I personally find the project quite nice!
How could anyone include search in these static sites? Is there any theme that could provide such functionality?
They have incredible themes
b. if you're looking for a copy button for code blocks, I've seen it done (and done it myself) with some vanilla js.
c. the more vanilla js the better.
d. can you make code blocks have tabs for different languages?
e. this is awesome (did I mention that already).
f. I will find an excuse to use this.
g. I use ddg for my site search, but Google custom search works too, and is a bit easier to work with.