quilt
I will be updating it soon. The main changes are:
*
) or double (**
) wildcards. All paths non-absolute are relative to the location of configuration file.A single function called quilt
is given a target directory containing HTML files and a location to output a website directory. Below is a summary of how it works:
src
and href
).Together, the partial copy of the target directory (HTML files and their dependencies) and the pages used to display HTML files therein, constitute a portable and self-contained website. If the contents of the target directory change, the function can be run again to update the website. One benefit of this system is that even if a large HTML file appears multiple places on the website, it is only stored once. Also, the original file is available for viewing or download (in Firefox: right click
> This frame
> …), which is useful for printing notes or viewing embedded HTML slide shows.
In addition to the configuration files used to determine content location, there is another type used to specify default website building options. This configuration file is also in YAML format and contains the values of some or all of the options accepted by the quilt
function. Option values specified here replace the defaults when running quilt
, although options specified in the configuration file can still be overwritten by function options used. Unlike the content placement configuration files, only one of this type of this type can be used each time a website is built. They are useful for storing the options used to build a specific website in its source directory so that rebuilding the website can be simplified to running quilt()
in the project directory. Below is an example of website build configuration file content. In the context of the previous examples, this configuration file would be saved at “/home/your_name/documents/notes/build_config.yml”.
clean: false
theme: cosmo
note_config_name: note_config.yml
In addition to the user generated files in the source directory, these type of files are automatically made in the output each time a website is created to record the parameters used. Since the configuration file used can be specified by a quilt
option, these can be referenced to rebuild a website with the same parameters as last time.