Skip to content

Commit

Permalink
Merge pull request #607 from SublimeText-Markdown/3.0.0
Browse files Browse the repository at this point in the history
Release 3.0.0
  • Loading branch information
deathaxe committed Sep 12, 2021
2 parents c7183bf + 948deec commit 8179cb4
Show file tree
Hide file tree
Showing 186 changed files with 20,076 additions and 13,174 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.json]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

[*.sublime-*]
indent_style = tab

[*.tmPreferences]
indent_style = tab
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
exclude = .*/,tests/,plugin.py,**/__init__.py
ignore = E203,E266,E501,W503
max-complexity = 25
max-line-length = 100
select = B,C,E,F,W,T4,B9
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Skip the following content from *.sublime-package files

# Git & Github
.github/ export-ignore
.gitattributes export-ignore
.gitignore export-ignore

# Documentation
docs/ export-ignore
samples/ export-ignore
CONTRIBUTING.md export-ignore
mcdocs.yml export-ignore

# Unittests
tests/ export-ignore
make.cmd export-ignore

# Settings
.editorconfig export-ignore
.flake8 export-ignore
pyproject.toml export-ignore
45 changes: 45 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI Lint

on:
push:
branches:
- 'master'
paths:
- '**/*.json'
- '**/*.py'
- '**/*.sublime-*'
pull_request:
branches:
- '**'
paths:
- '**/*.json'
- '**/*.py'
- '**/*.sublime-*'
workflow_dispatch:

jobs:
lint:
name: Python ${{ matrix.python }}
runs-on: ubuntu-18.04
strategy:
matrix:
python:
- '3.3'
- '3.8'
arch:
- 'x64'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.arch }}
- name: Install linters
run: pip install -r tests/requirements.txt
- name: Run black
run: python -m black --check .
if: ${{ matrix.python == '3.8' }}
- name: Run flake8
run: python -m flake8
40 changes: 40 additions & 0 deletions .github/workflows/ci-syntax-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI Syntax Tests

on:
push:
branches:
- 'master'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
- '**/syntax_test_*'
- '**.tmPreferences'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
- '**/syntax_test_*'
- '**.tmPreferences'
workflow_dispatch:

jobs:
syntax_tests:
name: Sublime Text ${{ matrix.build }}
strategy:
matrix:
include:
- build: 3211
packages: st3
- build: 4107
packages: a147e3eb6210de480d0d9a6bd6bf54931a8ba7e9
- build: latest
packages: master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: SublimeText/syntax-test-action@v2
with:
build: ${{ matrix.build }}
default_packages: ${{ matrix.packages }}
41 changes: 41 additions & 0 deletions .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI Unit Tests

on:
push:
branches:
- 'master'
paths:
- '**/*.json'
- '**/*.py'
- '**/*.sublime-*'
pull_request:
branches:
- '**'
paths:
- '**/*.json'
- '**/*.py'
- '**/*.sublime-*'
workflow_dispatch:

jobs:
test:
name: Sublime Text ${{ matrix.st_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
st_version: [3, 4]
container:
image: sublimetext/unittesting
options: --cap-add=NET_ADMIN
env:
SUBLIME_TEXT_VERSION: ${{ matrix.st_version }}
steps:
- uses: actions/checkout@v1
- run: sh -e /etc/init.d/xvfb start
- run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
- run: |
PATH="$HOME/.local/bin:$PATH"
sh github.sh bootstrap
sh github.sh install_package_control
sh github.sh run_tests
27 changes: 27 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Docs to Github Pages

on:
push:
branches:
- 'master'
paths:
- 'docs/**'
workflow_dispatch:

jobs:
build:
name: Deploy Docs to Github Pages
runs-on: ubuntu-18.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install MkDocs
run: pip install -r docs/requirements.txt
- name: Run MkDocs
run: mkdocs gh-deploy
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# python cache files
__pycache__/
.mypy_cache/
.pytest_cache/
.tox/
.venv/
*.pyc

# other folders
/site
/_warehouse

# files
*.cache
MarkdownEditing.taskpaper
/_warehouse
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
30 changes: 0 additions & 30 deletions Bold and Italic Markers.tmPreferences

This file was deleted.

92 changes: 55 additions & 37 deletions Context.sublime-menu
Original file line number Diff line number Diff line change
@@ -1,38 +1,56 @@
[
{
"caption": "MDE: Fold Section",
"command": "fold_section_context"
},
{
"caption": "MDE: Unfold Section",
"command": "unfold_section_context"
},
{
"caption": "MDE: Jump Reference",
"command": "reference_jump_context"
},
{
"caption": "MDE: Convert inline link to reference",
"command": "convert_inline_link_to_reference"
},
{
"caption": "MDE: Open wiki page",
"command": "open_page"
},
{
"caption": "MDE: Open home wiki page",
"command": "open_home_page"
},
{
"caption": "MDE: Open todays journal page",
"command": "open_journal"
},
{
"caption": "MDE: Make wiki page reference",
"command": "make_page_reference"
},
{
"caption": "MDE: List back links",
"command": "list_back_links"
}
]
{
"caption": "MarkdownEditing",
"id": "markdownediting",
"children": [
{
"caption": "-",
"id": "folding"
},
{
"caption": "Fold Section",
"command": "mde_fold_section_context"
},
{
"caption": "Unfold Section",
"command": "mde_unfold_section_context"
},
{
"caption": "-",
"id": "references"
},
{
"caption": "Jump Reference",
"command": "mde_reference_jump_context"
},
{
"caption": "Convert inline link to reference",
"command": "mde_convert_inline_link_to_reference"
},
{
"caption": "-",
"id": "wiki"
},
{
"caption": "Open wiki page",
"command": "mde_open_page"
},
{
"caption": "Open home wiki page",
"command": "mde_open_home_page"
},
{
"caption": "Open todays journal page",
"command": "mde_open_journal"
},
{
"caption": "Make wiki page reference",
"command": "mde_make_page_reference"
},
{
"caption": "List back links",
"command": "mde_list_back_links"
}
]
}
]
Loading

0 comments on commit 8179cb4

Please sign in to comment.