From b7a126742f9c7304aabbe42f4ddc3723c41a3b4f Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 3 Feb 2018 20:27:07 -0800 Subject: [PATCH] Use `.adoc` for asciidoctor files instead of `.asc` (#300) --- README.asc => README.adoc | 0 ci/before_deploy.ps1 | 2 +- ci/before_deploy.sh | 2 +- justfile | 4 ++-- src/parser.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename README.asc => README.adoc (100%) diff --git a/README.asc b/README.adoc similarity index 100% rename from README.asc rename to README.adoc diff --git a/ci/before_deploy.ps1 b/ci/before_deploy.ps1 index 68004919..375bc050 100644 --- a/ci/before_deploy.ps1 +++ b/ci/before_deploy.ps1 @@ -14,7 +14,7 @@ $ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\just.exe" '.\' Copy-Item "$SRC_DIR\GRAMMAR.md" '.\' Copy-Item "$SRC_DIR\LICENSE" '.\' -Copy-Item "$SRC_DIR\README.asc" '.\' +Copy-Item "$SRC_DIR\README.adoc" '.\' 7z a "$ZIP" * diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 3d1e7af4..9ada8d21 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -24,7 +24,7 @@ main() { cp target/$TARGET/release/just $stage/ cp GRAMMAR.md $stage/ cp LICENSE $stage/ - cp README.asc $stage/ + cp README.adoc $stage/ cd $stage tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz * diff --git a/justfile b/justfile index 7cf99ea9..804ad229 100644 --- a/justfile +++ b/justfile @@ -118,12 +118,12 @@ quine-text = ' render-readme: #!/usr/bin/env ruby require 'github/markup' - $rendered = GitHub::Markup.render("README.asc", File.read("README.asc")) + $rendered = GitHub::Markup.render("README.adoc", File.read("README.adoc")) File.write('tmp/README.html', $rendered) watch-readme: just render-readme - fswatch -ro README.asc | xargs -n1 -I{} just render-readme + fswatch -ro README.adoc | xargs -n1 -I{} just render-readme # run all polyglot recipes polyglot: python js perl sh ruby diff --git a/src/parser.rs b/src/parser.rs index 560ac520..8c490344 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -854,7 +854,7 @@ a: let mut justfiles = vec![]; let mut current = None; - for line in brev::slurp("README.asc").lines() { + for line in brev::slurp("README.adoc").lines() { if let Some(mut justfile) = current { if line == "```" { justfiles.push(justfile);