Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: h3rald/hastyscribe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.0
Choose a base ref
...
head repository: h3rald/hastyscribe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 8, 2017

  1. Copy the full SHA
    2d49ae5 View commit details
  2. Removed passL pragmas.

    h3rald committed Jul 8, 2017
    Copy the full SHA
    7e9daa2 View commit details

Commits on Jul 9, 2017

  1. Copy the full SHA
    6108fd0 View commit details
  2. Modified linking options.

    h3rald committed Jul 9, 2017
    Copy the full SHA
    26a5547 View commit details

Commits on Sep 27, 2017

  1. Fixed typo.

    * Closes #52
    h3rald committed Sep 27, 2017
    Copy the full SHA
    c0b3640 View commit details

Commits on Oct 29, 2017

  1. Implemented dump option.

    * Closes #54.
    h3rald committed Oct 29, 2017
    Copy the full SHA
    097e689 View commit details
  2. Copy the full SHA
    69fbe6c View commit details
  3. Moved extra files to lib directory.

    * Closes #53.
    h3rald committed Oct 29, 2017
    Copy the full SHA
    f8f3423 View commit details
  4. Integrated niftylogger.

    * Closes #55.
    h3rald committed Oct 29, 2017
    Copy the full SHA
    82ff5ea View commit details
  5. Copy the full SHA
    bc0fea8 View commit details
  6. Updated readme.

    h3rald committed Oct 29, 2017
    Copy the full SHA
    77bbdc2 View commit details
  7. Updated nakefile.

    h3rald committed Oct 29, 2017
    Copy the full SHA
    129c159 View commit details

Commits on Nov 1, 2017

  1. Exporting consts.

    h3rald committed Nov 1, 2017
    Copy the full SHA
    c384273 View commit details

Commits on Nov 2, 2017

  1. Copy the full SHA
    f61bc2d View commit details

Commits on Nov 12, 2017

  1. Copy the full SHA
    55d4481 View commit details
  2. Copy the full SHA
    0c7d8c2 View commit details

Commits on Nov 18, 2017

  1. Fixed delimiter processing.

    h3rald committed Nov 18, 2017
    Copy the full SHA
    822d0c8 View commit details
  2. Minor fixes.

    h3rald committed Nov 18, 2017
    Copy the full SHA
    15c7fa1 View commit details
  3. Preparing for release.

    h3rald committed Nov 18, 2017
    Copy the full SHA
    e3dda42 View commit details
  4. Copy the full SHA
    80233f7 View commit details

Commits on Mar 11, 2018

  1. Copy the full SHA
    4c0e079 View commit details

Commits on Apr 21, 2018

  1. Fixed document date parsing.

    * Closes #57.
    h3rald committed Apr 21, 2018
    Copy the full SHA
    5ea1799 View commit details
  2. Copy the full SHA
    7e292ce View commit details

Commits on Apr 27, 2018

  1. Copy the full SHA
    b384803 View commit details

Commits on Apr 29, 2018

  1. Copy the full SHA
    a8d1679 View commit details
  2. Preparing to release v1.10.0.

    h3rald committed Apr 29, 2018
    Copy the full SHA
    508136d View commit details
  3. Verified

    This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fa81169 View commit details
  4. Create LICENSE

    h3rald authored Apr 29, 2018

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e4af861 View commit details
  5. Update README.md

    h3rald authored Apr 29, 2018

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    92ac52f View commit details

Commits on Sep 8, 2018

  1. Fixed errors on Nim devel.

    h3rald committed Sep 8, 2018
    Copy the full SHA
    c7678fe View commit details
  2. Fixed incorrect condition.

    h3rald committed Sep 8, 2018
    Copy the full SHA
    76600a1 View commit details
  3. Copy the full SHA
    00f98d3 View commit details

Commits on Sep 9, 2018

  1. Fix typo.

    schmich authored Sep 9, 2018

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9068524 View commit details
  2. Merge pull request #64 from schmich/patch-1

    Fix typo.
    h3rald authored Sep 9, 2018

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8ccf49c View commit details

Commits on Oct 7, 2018

  1. Fixed #65, #66, #67, #68.

    h3rald committed Oct 7, 2018
    Copy the full SHA
    b9b6fa4 View commit details
  2. Copy the full SHA
    2d4f7bb View commit details
  3. Copy the full SHA
    39cd940 View commit details

Commits on Oct 8, 2018

  1. Changed package structure.

    h3rald committed Oct 8, 2018
    Copy the full SHA
    cc9b975 View commit details

Commits on Oct 21, 2018

  1. Testing nimble installation.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    84c64f2 View commit details
  2. Testing nimble installation.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    ede8ef6 View commit details
  3. Testing nimble install.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    3892473 View commit details
  4. Testing nimble installation.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    9dcba02 View commit details
  5. Testing nimble install.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    3622149 View commit details
  6. Testing nimble install.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    c3c30ae View commit details
  7. Testing nimble support.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    5ad6b39 View commit details
  8. Testing nimble support.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    9fd6a8e View commit details
  9. Testing nimble support.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    ed1d259 View commit details
  10. Testing nimble support.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    26a584b View commit details
  11. Testing nimble support.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    2b30a16 View commit details
  12. Testing nimble support.

    h3rald committed Oct 21, 2018
    Copy the full SHA
    23e27fc View commit details
Showing with 6,087 additions and 5,152 deletions.
  1. +131 −0 .github/workflows/add-artifacts-to-current-release.yml
  2. +43 −0 .github/workflows/ci.yml
  3. +2 −1 .gitignore
  4. +0 −60 .travis.yml
  5. +21 −0 LICENSE
  6. +0 −181 LICENSE.md
  7. +22 −60 README.md
  8. +0 −1 build_guide
  9. +0 −37 config.nim
  10. +0 −30 consts.nim
  11. +1 −0 description
  12. +66 −0 doc/-api.md
  13. +4 −8 doc/-credits.md
  14. +11 −13 doc/-getting-started.md
  15. +2 −2 doc/-overview.md
  16. +21 −2 doc/-syntax-block-classes.md
  17. +14 −0 doc/-syntax-block-lists.md
  18. +39 −4 doc/-syntax-block.md
  19. +60 −48 doc/-syntax-inline.md
  20. +2 −2 doc/-syntax.md
  21. +21 −5 doc/-usage.md
  22. +1,228 −3,929 doc/HastyScribe_UserGuide.htm
  23. +1 −0 doc/HastyScribe_UserGuide.md
  24. BIN doc/images/hastyscribe.png
  25. +0 −477 hastyscribe.nim
  26. +0 −24 hastyscribe.nim.cfg
  27. +61 −8 hastyscribe.nimble
  28. +0 −58 nakefile.nim
  29. +0 −56 nifty.json
  30. +715 −0 src/hastyscribe.nim
  31. +12 −0 src/hastyscribe.nim.cfg
  32. +4 −0 src/hastyscribepkg/config.nim
  33. +83 −0 src/hastyscribepkg/consts.nim
  34. +1 −0 src/hastyscribepkg/data/hastyscribe-original.svg
  35. +1 −0 src/hastyscribepkg/data/hastyscribe.svg
  36. +76 −0 src/hastyscribepkg/data/hastystyles.badges.css
  37. +1,323 −0 src/hastyscribepkg/data/hastystyles.css
  38. +1,861 −0 src/hastyscribepkg/data/hastystyles.icons.css
  39. +47 −0 src/hastyscribepkg/data/hastystyles.links.css
  40. +4 −0 src/hastyscribepkg/data/hastystyles.notes.css
  41. +62 −75 { → src/hastyscribepkg}/markdown.nim
  42. +74 −0 src/hastyscribepkg/niftylogger.nim
  43. +74 −0 src/hastyscribepkg/utils.nim
  44. BIN src/hastyscribepkg/vendor/markdown/linux/libmarkdown.a
  45. BIN src/hastyscribepkg/vendor/markdown/macosx/libmarkdown.a
  46. BIN src/hastyscribepkg/vendor/markdown/windows/libmarkdown.a
  47. +0 −71 utils.nim
  48. BIN vendor/libmarkdown_linux_arm.a
  49. BIN vendor/libmarkdown_linux_x64.a
  50. BIN vendor/libmarkdown_linux_x86.a
  51. BIN vendor/libmarkdown_macosx_x64.a
  52. BIN vendor/libmarkdown_windows_x64.a
131 changes: 131 additions & 0 deletions .github/workflows/add-artifacts-to-current-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: Add Artifacts to Current Release

# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
release:
name: 'Build and upload artifacts'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest

env:
CHOOSENIM_CHOOSE_VERSION: stable
CHOOSENIM_NO_ANALYTICS: 1

steps:
# Cancel other actions of the same type that might be already running
- name: 'Cancel similar actions in progress'
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ github.token }}

# Detects OS and provide Nim-friendly OS identifiers
- name: Detect current OS
id: os
run: echo "os=${{matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-latest' && 'macosx' || matrix.os == 'windows-latest' && 'windows'}}" >> $GITHUB_OUTPUT

# Checks out the repository
- uses: actions/checkout@v2

# Installs libraries
- name: install musl-gcc
run: sudo apt-get install -y musl-tools
if: matrix.os == 'ubuntu-latest'

# Sets path (Linux, macOS)
- name: Update $PATH
shell: bash
run: |
echo "$HOME/.nimble/bin" >> $GITHUB_PATH
echo $GITHUB_WORKSPACE >> $GITHUB_PATH
# Sets path (Windows)
- name: Update %PATH%
run: |
echo "${HOME}/.nimble/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "${GITHUB_WORKSPACE}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
if: matrix.os == 'windows-latest'

# Install the Nim compiler
- name: Install Nim
run: |
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
sh init.sh -y
# Temporary Windows-specific fix (missing certificates for nimble)
- name: Install cert (temporary fix, windows only)
run: |
curl https://curl.se/ca/cacert.pem -L -o cacert.pem
if: matrix.os == 'windows-latest'

# Build for Linux
- name: Build (Linux)
run: |
nimble build -v -y --passL:-static -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc --opt:size
if: matrix.os == 'ubuntu-latest'

# Build for macOS/Windows
- name: Build (macOS, Windows)
shell: bash
run: |
nimble build -v -y -d:release --mm:refc --opt:size
if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest'


# UPX compress (*nix)
- name: UPX
uses: svenstaro/upx-action@v2
with:
files: |
hastyscribe
args: --best --force
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'

# UPX compress (Windows)
- name: UPX
uses: svenstaro/upx-action@v2
with:
files: |
hastyscribe.exe
args: --best --force
if: matrix.os == 'windows-latest'

# Retrieve ID and Name of the current (draft) release
- name: "Get current release"
id: current-release
uses: InsonusK/get-latest-release@v1.0.1
with:
myToken: ${{ github.token }}
exclude_types: "release"
view_top: 1

# Package the resulting Linux/macOS binary
- name: Create artifact (Linux, macOS)
run: zip hastyscribe_${{steps.current-release.outputs.tag_name}}_${{steps.os.outputs.os}}_x64.zip hastyscribe
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'

# Package the resulting Windows binary
- name: Create artifact (Windows)
run: Compress-Archive -Path hastyscribe.exe -DestinationPath hastyscribe_${{steps.current-release.outputs.tag_name}}_windows_x64.zip
if: matrix.os == 'windows-latest'

# Upload artifacts to current draft release
- name: "Upload to current release"
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "hastyscribe_v*.zip"
overwrite: true
tag_name: ${{steps.current-release.outputs.tag_name}}
release_id: ${{steps.current-release.outputs.id }}
verbose: true
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "ci"
ci:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
CHOOSENIM_CHOOSE_VERSION: stable
CHOOSENIM_NO_ANALYTICS: 1

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: install musl-gcc
run: sudo apt-get install -y musl-tools

- name: Update $PATH
run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH

- name: Install Nim
run: |
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
sh init.sh -y
- name: Build
run: |
nimble build -y -d:release --passL:-static --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc
./hastyscribe doc/HastyScribe_UserGuide.md
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
nimcache/
build/
libmarkdown.a
README.htm
hastyscribe.exe
hastyscribe
nakefile
packages/
*.zip
test.md
test.html?
60 changes: 0 additions & 60 deletions .travis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2013-2023 Fabio Cevasco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading