Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [12.11.x]
node-version: [12.18.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -28,9 +28,16 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm run build --if-present
- run: npm run generate:types
- run: npm test
env:
CI: true
- name: Install asciidoctor
run: sudo apt-get install asciidoctor
- name: Install pandoc
run: wget https://github.com/jgm/pandoc/releases/download/2.10.1/pandoc-2.10.1-1-amd64.deb && sudo dpkg -i pandoc-2.10.1-1-amd64.deb
- name: Convert readme to markdown
run: asciidoctor README.adoc -b docbook -o - | pandoc -f docbook -t gfm > README.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I experimented with this a bit the other day---I think the move here is:

asciidoctor README.adoc -o - | pandoc -f html -t markdown_strict - -o README.md

Going through HTML seems to produce better Markdown output (e.g., it includes the Table of Contents and title) than using Docbook as the intermediary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, that's probably better than my command since I didn't directly compare the results achieved when using different intermediary formats.

- if: contains(github.ref, 'releases/ropsten')
name: Bump and publish npm package
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ build/
**.swp
**.swo
.DS_Store
README.md
types
13 changes: 3 additions & 10 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,9 @@ const tbtc = await TBTC.withConfig({
web3: web3,
bitcoinNetwork: "testnet",
electrum: {
"testnet": {
"server": "electrumx-server.test.tbtc.network",
"port": 50002,
"protocol": "ssl"
},
"testnetWS": {
"server": "electrumx-server.test.tbtc.network",
"port": 50003,
"protocol": "ws"
}
server: "electrumx-server.test.tbtc.network",
port: 8443,
protocol: "wss"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

},
})
```
Expand Down
Loading