1
1
mirror of https://github.com/casey/just.git synced 2024-11-26 23:27:26 +03:00

Use .adoc for asciidoctor files instead of .asc (#300)

This commit is contained in:
Casey Rodarmor 2018-02-03 20:27:07 -08:00 committed by GitHub
parent 1f4cf781e7
commit b7a126742f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -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" *

View File

@ -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 *

View File

@ -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

View File

@ -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);