diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..433405a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: main +on: push +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + python-version: [3.6, 3.7, 3.8] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install sphinxemoji and all its requirements + run: python -m pip install -e .[ci] + - name: Test + run: | + doc8 README.rst + doc8 docs/source/ + make -C docs html SPHINXOPTS="-W -E" + make -C docs linkcheck diff --git a/docs/source/conf.py b/docs/source/conf.py index 8f029da..33194c4 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -74,7 +74,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = ['_static'] class SphinxEmojiTable(Directive): diff --git a/docs/source/index.rst b/docs/source/index.rst index 452c387..bbb08c9 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -8,7 +8,7 @@ Sphinx Emoji Codes - |version| Sphinx Emoji Codes supports many emoji codes. It currently combines the following sources: -- `gemojione `_ - `joypixels `_ Here is the full list of supported emoji codes, sorted alphabetically: diff --git a/setup.py b/setup.py index d19eda5..2cd790e 100644 --- a/setup.py +++ b/setup.py @@ -37,4 +37,9 @@ install_requires=[ 'sphinx>=1.7', ], + extras_require={ + 'ci': [ + 'doc8', + ] + }, )