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:
parent
1f4cf781e7
commit
b7a126742f
@ -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" *
|
||||
|
||||
|
@ -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 *
|
||||
|
4
justfile
4
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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user