From 8f42391a0eb78b13a47c74972ba1ab7ba7684452 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Sun, 14 Jan 2024 13:50:42 -0700 Subject: [PATCH] Update docs, copyright, and build deps (#176) * Update docs, copyright, and build deps * Use multiprocessing for spelling jobs and fix spelling issue --- .github/workflows/build.yml | 20 ++++++++++---------- .github/workflows/deploy.yml | 6 +++--- .pyspelling.yml | 2 ++ LICENSE.md | 2 +- markdown_preview.py | 2 +- mkdocs.yml | 35 ++++++++++++++++++++++++++++++++--- 6 files changed, 49 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ab6afd..1dcc467 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,16 +14,16 @@ jobs: tests: env: - TOXENV: py310 + TOXENV: py311 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip setuptools tox @@ -39,11 +39,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip setuptools tox @@ -59,11 +59,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip setuptools tox diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 45b97a5..fd79567 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,13 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip setuptools diff --git a/.pyspelling.yml b/.pyspelling.yml index a42b9da..a65bbc6 100644 --- a/.pyspelling.yml +++ b/.pyspelling.yml @@ -1,3 +1,5 @@ +jobs: 8 + matrix: - name: mkdocs pipeline: diff --git a/LICENSE.md b/LICENSE.md index 58a6dbb..c0d6e65 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -2,7 +2,7 @@ Released under the MIT license. Copyright (c) 2015 - 2018 Julien Bouquillon, revolunet -Copyright (c) 2018 - 2023 Isaac Muse +Copyright (c) 2018 - 2024 Isaac Muse 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 diff --git a/markdown_preview.py b/markdown_preview.py index 5d81cb4..1090dfe 100644 --- a/markdown_preview.py +++ b/markdown_preview.py @@ -100,7 +100,7 @@ def get_temp_preview_path(view): def get_temp_preview_dir(view): - """Return a permanent full dir of the temp markdown preview file.""" + """Return a permanent full directory of the temp markdown preview file.""" settings = sublime.load_settings('MarkdownPreview.sublime-settings') path_tempfile = settings.get('path_tempfile') if path_tempfile: diff --git a/mkdocs.yml b/mkdocs.yml index 250a5c7..84267f6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,7 +4,7 @@ repo_url: https://github.com/facelessuser/MarkdownPreview edit_uri: tree/master/docs/src/markdown site_description: Markdown preview and build plugin for Sublime Text copyright: | - Copyright © 2018 - 2023 Isaac Muse + Copyright © 2018 - 2024 Isaac Muse docs_dir: docs/src/markdown theme: @@ -76,8 +76,8 @@ markdown_extensions: - pymdownx.caret: - pymdownx.smartsymbols: - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg - pymdownx.escapeall: hardbreak: true nbsp: true @@ -112,6 +112,35 @@ markdown_extensions: - example - quote - pymdownx.blocks.details: + types: + - name: details-new + class: new + - name: details-settings + class: settings + - name: details-note + class: note + - name: details-abstract + class: abstract + - name: details-info + class: info + - name: details-tip + class: tip + - name: details-success + class: success + - name: details-question + class: question + - name: details-warning + class: warning + - name: details-failure + class: failure + - name: details-danger + class: danger + - name: details-bug + class: bug + - name: details-example + class: example + - name: details-quote + class: quote - pymdownx.blocks.html: - pymdownx.blocks.definition: - pymdownx.blocks.tab: