Anodize


Anodize is the static site generator used to build this website and the Zencyclopedia. It was written with the goal of being more powerful and user-friendly than Jekyll.

Currently (as of v1.2.1), Anodize has the following key features:

Planned features:

$ anodize --help

anodize [command]

Commands:
  anodize clean             delete all generated files
  anodize config <command>  manage the anodize configuration
  anodize icon              Generate web icons from a single source image
  anodize init              create the directory structure
  anodize run               run the generator
  anodize serve             Serve files over HTTP from the target directory
                                                                    [aliases: s]
  anodize watch             Execute the generator each time the source directory
                            changes

Options:
  --help                      Show help                                [boolean]
  --version                   Show version number                      [boolean]
  --working-dir, --input, -i  Set the working directory           [default: "."]
  --source, -s                The directory containing source files
  --target, -t                The directory in which to store generated files
  --template                  The directory containing template files
  --ignore                    Ignore files matching glob patterns        [array]

As an example, here's the .anodize.yml configuration file used to generate this website.

# .anodize.yml
target: gen
source: src
template: template
indexify: true
ignore:
  - '**/.*'
  - '.*'
head:
  title: 'Sid Mani''s blog'
  description: 'Sid Mani''s projects and ramblings.'
  keywords: ['Sid', 'Mani', 'blog', 'tech', 'college', 'life', 'entrepreneur', 'entrepreneurship', 'hack', 'code']
  css:
    - 'https://cdnjs.cloudflare.com/ajax/libs/hack/0.8.0/hack.css'
    - '/css/main.css'
  raw:
    - '<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112062318-1"></script>'
    - '<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(''js'', new Date()); gtag(''config'', ''UA-112062318-1''); </script>'
    - '<meta name="google-site-verification" content="56BdJW4awdCqAzV0coz6axdn_pGqV6da5YopZOE36K4" />'
global:
  github: "https://github.com/sidmani"
  email: "mailto:sid@sidmani.com"
Index