Skip to content

Commit 8179cb4

Browse files
authored
Merge pull request #607 from SublimeText-Markdown/3.0.0
Release 3.0.0
2 parents c7183bf + 948deec commit 8179cb4

File tree

186 files changed

+20076
-13174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+20076
-13174
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.json]
11+
indent_style = tab
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[*.sublime-*]
17+
indent_style = tab
18+
19+
[*.tmPreferences]
20+
indent_style = tab

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
exclude = .*/,tests/,plugin.py,**/__init__.py
3+
ignore = E203,E266,E501,W503
4+
max-complexity = 25
5+
max-line-length = 100
6+
select = B,C,E,F,W,T4,B9

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Skip the following content from *.sublime-package files
2+
3+
# Git & Github
4+
.github/ export-ignore
5+
.gitattributes export-ignore
6+
.gitignore export-ignore
7+
8+
# Documentation
9+
docs/ export-ignore
10+
samples/ export-ignore
11+
CONTRIBUTING.md export-ignore
12+
mcdocs.yml export-ignore
13+
14+
# Unittests
15+
tests/ export-ignore
16+
make.cmd export-ignore
17+
18+
# Settings
19+
.editorconfig export-ignore
20+
.flake8 export-ignore
21+
pyproject.toml export-ignore

.github/workflows/ci-lint.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths:
8+
- '**/*.json'
9+
- '**/*.py'
10+
- '**/*.sublime-*'
11+
pull_request:
12+
branches:
13+
- '**'
14+
paths:
15+
- '**/*.json'
16+
- '**/*.py'
17+
- '**/*.sublime-*'
18+
workflow_dispatch:
19+
20+
jobs:
21+
lint:
22+
name: Python ${{ matrix.python }}
23+
runs-on: ubuntu-18.04
24+
strategy:
25+
matrix:
26+
python:
27+
- '3.3'
28+
- '3.8'
29+
arch:
30+
- 'x64'
31+
steps:
32+
- name: Checkout Repository
33+
uses: actions/checkout@v2
34+
- name: Set up Python ${{ matrix.python }}
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python }}
38+
architecture: ${{ matrix.arch }}
39+
- name: Install linters
40+
run: pip install -r tests/requirements.txt
41+
- name: Run black
42+
run: python -m black --check .
43+
if: ${{ matrix.python == '3.8' }}
44+
- name: Run flake8
45+
run: python -m flake8
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI Syntax Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths:
8+
- '.github/workflows/ci-syntax-tests.yml'
9+
- '**.sublime-syntax'
10+
- '**/syntax_test_*'
11+
- '**.tmPreferences'
12+
pull_request:
13+
branches:
14+
- '**'
15+
paths:
16+
- '.github/workflows/ci-syntax-tests.yml'
17+
- '**.sublime-syntax'
18+
- '**/syntax_test_*'
19+
- '**.tmPreferences'
20+
workflow_dispatch:
21+
22+
jobs:
23+
syntax_tests:
24+
name: Sublime Text ${{ matrix.build }}
25+
strategy:
26+
matrix:
27+
include:
28+
- build: 3211
29+
packages: st3
30+
- build: 4107
31+
packages: a147e3eb6210de480d0d9a6bd6bf54931a8ba7e9
32+
- build: latest
33+
packages: master
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: SublimeText/syntax-test-action@v2
38+
with:
39+
build: ${{ matrix.build }}
40+
default_packages: ${{ matrix.packages }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths:
8+
- '**/*.json'
9+
- '**/*.py'
10+
- '**/*.sublime-*'
11+
pull_request:
12+
branches:
13+
- '**'
14+
paths:
15+
- '**/*.json'
16+
- '**/*.py'
17+
- '**/*.sublime-*'
18+
workflow_dispatch:
19+
20+
jobs:
21+
test:
22+
name: Sublime Text ${{ matrix.st_version }}
23+
runs-on: ubuntu-latest
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
st_version: [3, 4]
28+
container:
29+
image: sublimetext/unittesting
30+
options: --cap-add=NET_ADMIN
31+
env:
32+
SUBLIME_TEXT_VERSION: ${{ matrix.st_version }}
33+
steps:
34+
- uses: actions/checkout@v1
35+
- run: sh -e /etc/init.d/xvfb start
36+
- run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
37+
- run: |
38+
PATH="$HOME/.local/bin:$PATH"
39+
sh github.sh bootstrap
40+
sh github.sh install_package_control
41+
sh github.sh run_tests
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy Docs to Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths:
8+
- 'docs/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
name: Deploy Docs to Github Pages
14+
runs-on: ubuntu-18.04
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- name: Set up Python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: '3.8'
24+
- name: Install MkDocs
25+
run: pip install -r docs/requirements.txt
26+
- name: Run MkDocs
27+
run: mkdocs gh-deploy

.gitignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
# python cache files
2+
__pycache__/
3+
.mypy_cache/
4+
.pytest_cache/
5+
.tox/
6+
.venv/
17
*.pyc
8+
9+
# other folders
10+
/site
11+
/_warehouse
12+
13+
# files
214
*.cache
315
MarkdownEditing.taskpaper
4-
/_warehouse

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8

Bold and Italic Markers.tmPreferences

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)