Commit graph

29 commits

Author SHA1 Message Date
facundoolano
1eeecd4f8f preserve font-size in inline code blogs 2024-03-04 14:39:53 -03:00
facundoolano
c3b77044a2 undraft change of plans post 2024-03-04 13:23:05 -03:00
facundoolano
edf8eda4dc cleanup change of plans post 2024-03-04 13:21:28 -03:00
facundoolano
17c75c0228 more sample code snippets in serve post 2024-03-04 11:26:18 -03:00
facundoolano
567db560f5 tweak docs and initfiles font sizes 2024-03-04 11:01:03 -03:00
facundoolano
60014e8813 more serve cmd and post updates 2024-03-04 10:33:55 -03:00
Facundo Olano
ff28ece092
Add more content for the serve command post (#23)
* document site api

* merge site.Load and site.Build into a single function

* fix tests

* make Site a private struct

* doc

* remove superfluous operation

* smaller tab width in source examples

* remove unnecessary temp var

* add some code snippet

* improve http fs naming

* add a few more code snippets

* cleanup serve code

* add watcher sample to blog post

* improve worker pool sample

* restore watcher close

* remove unused prefix

* some live reload samples in post

* remove outdated  command
2024-03-03 23:19:09 -03:00
facundoolano
af09593474 outline + intro for serve command post 2024-03-03 16:52:25 -03:00
facundoolano
11e4e32db8 smaller code font size in mobile 2024-03-03 12:00:58 -03:00
Facundo Olano
c02e1fc91e
Add page.previous and page.next liquid variables (#22)
* sort pages

* rename tutorial files to enforce an order

* add prev next props to posts

* test previous next

* prevent nested recursive links between posts

* add a next/prev footer

* make prev/next work as expected for both pages and posts

* remove sort by index

* bold current section in nav
2024-03-02 16:16:40 -03:00
facundoolano
fd87093621 fix weird safari text resizing 2024-03-02 10:53:27 -03:00
facundoolano
12897a011a cleanup post 2024-03-01 15:57:14 -03:00
facundoolano
8f102fe93c improve doc landing example 2024-03-01 14:45:57 -03:00
Facundo Olano
5993986044
Getting Started devlog (#21)
* getting started draft

* cleanup

* grammar fixes
2024-03-01 12:36:06 -03:00
facundoolano
3064beb3a1 rephrase tutorial subtitles 2024-02-29 15:59:09 -03:00
facundoolano
67bbfc50f9 rephrase doc 2024-02-29 15:59:09 -03:00
Facundo Olano
17c6c46eab
project outline devlog post (#19)
* initial dump for project outline post

* complete first draft of the post

* draft change of plans post

* cleanup project outline

* grammar fixes
2024-02-29 13:29:49 -03:00
facundoolano
baa1099633 add makefile target to manage versioning 2024-02-28 11:12:17 -03:00
Facundo Olano
f733c83b1f
start devlog (#18)
* remove sample posts

* init first post

* try not ignoring file creation events

* draft why go section

* more why go

* why cli

* finish first draft

* reconnect with server after lost connection

* corrections

* more corrections

* grammarly

* remove docs section

* update comment

* remove doc index
2024-02-28 10:26:59 -03:00
facundoolano
fe42044405 add preview image 2024-02-27 12:59:22 -03:00
Facundo Olano
6f27afacf7
Add drafts support (#17)
* add src and target ext as template methods

* add include drafts config

* default to draft on jorge post

* skip drafts from site indexes and rendering

* fix stat usage for file detection

* add site.Build test

* test build site with and without drafts

* add templ IsPost helper

* document drafts in readme

* document drafts in tutorial
2024-02-27 12:24:45 -03:00
Facundo Olano
e1280f07d5
Tutorial cleanup (#16)
* rewrite intro and swap with installation

* more content tweaks

* cleanup jorge-post in tutorial

* cleanup jorge build tutorial
2024-02-27 10:38:02 -03:00
facundoolano
a07d4af5c2 fix meta tags in docs and initfiles 2024-02-27 08:54:14 -03:00
Facundo Olano
e344dcb6ad
Syntax highlighting (#15)
* update markdown and org renderers to use chrome highlighting

* add example code blocks

* fix missing nav in default layout

* remove problematic code nowrap

* add language to tutorial samples

* set theme explicitly

* allow setting highlight theme with config

* fix config key for hl

* try to handle both light dark settings gracefully

* fix some problematic css color settings

* fix missing raw template

* fix weird chroma code height artifacts

* improve tabler rendering in mobile

* remove redundant default
2024-02-27 08:45:29 -03:00
facundoolano
dd94738555 remove unnecessary xml escaping from templates 2024-02-25 11:35:51 -03:00
Facundo Olano
b3594be86c
Refactor CLI using kong (#13)
* use kong for cli parsing

* fix kong usage

* remove conditional

* don't blow up serve if src dir is missing

* load config in main side (boilerplaty)

* fix weird names

* add versions and aliases

* fix version printing

* replace command switch with Run methods

* move subcommand structs to commands package

* distribute commands into files

* add usage to docs

* add flags to configure server
2024-02-24 12:39:45 -03:00
Facundo Olano
9a782bedac
Tutorial (#12)
* rearrange tutorial outline

* tweak code style in docs and initfiles

* inform of written config and readme files in init

* add the first couple of tutorial pages

* code background

* tweak file descriptions

* introduce delay to prevent burst of rebuilds

* remove redundant rebuild

* refactor serve code some more

* jorge serve tutorial chapter

* add intro

* style tables

* code style tweaks

* fix footnotes heading

* separate intro and install

* comment out blog

* nav links

* fix footer link

* docs layout tweaks

* zero pad date format in slug

* jorge post tutorial page

* right align tutorial links

* build tutorial

* grammar corrections
2024-02-23 13:37:55 -03:00
facundoolano
263610807b add deploy files 2024-02-21 19:19:16 -03:00
Facundo Olano
7094998638
Outline docs site (#11)
* add src_path to template metadata

* tweak init files

* add docs site with initial layout

* add some tweaks to make default layouts more consistent

* index tweaks

* more layout

* stub tutorial entries

* add output in docs index

* fix footer padding

* change listening for serving

* simplify submenu

* remove inline styles
2024-02-21 18:41:03 -03:00