add document link

This commit is contained in:
Xie Yanbo 2020-06-24 11:46:13 +08:00
parent c531156f45
commit 788fe7d7a6
2 changed files with 13 additions and 13 deletions

View File

@ -1,17 +1,16 @@
name: website name: website
on: [push] # debugging only #on: [push] # debugging only
#on: on:
# push: push:
# tags: tags:
# - 'v*.*.*' - 'v*.*.*'
jobs: jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - name: Checkout
name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Set output - name: Set output
id: vars id: vars
@ -38,15 +37,13 @@ jobs:
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb1d_1.22-3_amd64.deb wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb1d_1.22-3_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb-dev_1.22-3_amd64.deb wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb-dev_1.22-3_amd64.deb
sudo dpkg -i *.deb sudo dpkg -i *.deb
- - name: Build and test
name: Build and test
env: env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }} RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: | run: |
nimble build -Y nimble build -Y
nimble test -Y nimble test -Y
- - name: Build doc
name: Build doc
env: env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }} RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: | run: |
@ -56,13 +53,13 @@ jobs:
nimble doc --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb/raw.nim nimble doc --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb/raw.nim
find . find .
# Deploying documentation of the latest version.
mkdir -p ./public mkdir -p ./public
mv leveldb.html raw.html nimdoc.out.css ./public/ mv leveldb.html raw.html nimdoc.out.css ./public/
cd ./public/ cd ./public/
ln -s ./leveldb.html index.html ln -s ./leveldb.html index.html
cd ../ cd ../
- - name: Deploy
name: Deploy
if: success() if: success()
uses: crazy-max/ghaction-github-pages@v1.3.0 uses: crazy-max/ghaction-github-pages@v1.3.0
with: with:

View File

@ -1,4 +1,7 @@
# leveldb.nim # leveldb.nim
[![docs](https://img.shields.io/badge/docs-leveldb.nim-green)](https://zielmicha.github.io/leveldb.nim/)
A LevelDB wrapper for Nim in a Nim friendly way. A LevelDB wrapper for Nim in a Nim friendly way.
Create a database: Create a database: