Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nirokay committed Sep 24, 2024
1 parent 6f188fb commit 4312726
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions websitegenerator/attributes.nim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Attributes Module
## =================
##
## Automatically generated procs for setting single HTML attributes
##
## Reference:
Expand Down
10 changes: 10 additions & 0 deletions websitegenerator/attributes/generateFromCsv.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
## Attributes Generator
## ====================
##
## This module automatically generates setters for HTML attributes from parsing a CSV file, so that
## I do not have to type them out manually and when there are news ones from new HTML versions, it
## can be easily extended.

import std/[strutils, strformat, parsecsv, tables]

const targetFile: string = "../attributes.nim"

var lines: seq[string] = @[
"## Attributes Module",
"## =================",
"##",
"## Automatically generated procs for setting single HTML attributes",
"##",
"## Reference:",
Expand Down
6 changes: 6 additions & 0 deletions websitegenerator/mimetypes/generateFromCsv.nim
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Mimetype Generator
## ==================
##
## This module reads a csv file and turns it into valid Nim code, so my fingers do not die from
## typing every single Mimetype by hand.

import std/[strutils, strformat]

const files: seq[string] = @[
Expand Down

0 comments on commit 4312726

Please sign in to comment.