From f5509f3f14fffce623127306ebe23bc6e075426d Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 20 Jul 2024 21:47:47 -0300 Subject: [PATCH] nanoc.yaml -> nanoc.yaml.sample This change allows changes to be made to nanoc.yaml that don't have to be checked back into the repository. The bin/setup script will copy the sample file into place. --- .gitignore | 13 +++++++------ bin/setup | 3 +++ nanoc.yaml.sample | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 nanoc.yaml.sample diff --git a/.gitignore b/.gitignore index 33a4904..06dd944 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,11 @@ +node_modules/ +dist/ +/.gems/ /build/ /tmp/ -/packages/typescript/**/*.js -/packages/typescript/**/dist/ /rake/tasks/deploy.rake -/.gems/ -/submodules/quran-json/ +/packages/**/*.js +/submodules/ /crash.log -node_modules/ -*.core +/*.core/ +/nanoc.yaml diff --git a/bin/setup b/bin/setup index 72ecc0b..8b9adef 100755 --- a/bin/setup +++ b/bin/setup @@ -37,3 +37,6 @@ printok "ruby dependencies installed" npm i printok "nodejs dependencies installed" + +cp nanoc.yaml.sample nanoc.yaml +printok "nanoc.yaml.sample -> nanoc.yaml" diff --git a/nanoc.yaml.sample b/nanoc.yaml.sample new file mode 100644 index 0000000..09f6f57 --- /dev/null +++ b/nanoc.yaml.sample @@ -0,0 +1,32 @@ +# A list of file extensions that Nanoc will consider to be textual rather than +# binary. If an item with an extension not in this list is found, the file +# will be considered as binary. +text_extensions: [ + 'adoc', 'asciidoc', 'atom', 'coffee', 'css', 'erb', 'haml', + 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', + 'md', 'ms', 'mustache', 'php', 'rb', 'rdoc', 'sass', 'scss', + 'slim', 'tex', 'txt', 'xhtml', 'xml', 'ts', 'tsx', 'json' + ] + +prune: + auto_prune: true + +lib_dirs: ['nanoc/lib', 'nanoc/ruledsl'] +output_dir: build/al-quran/ + +data_sources: + - type: filesystem + encoding: UTF-8 + content_dir: src/ + layouts_dir: src/layouts + +audio: + base_url: https://al-quran.reflectslight.io/audio/alajmi + +server: + base_url: https://al-quran.reflectslight.io + unix: + path: + tcp: + host: 127.0.0.1 + port: 7777