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: readthedocs/readthedocs-sphinx-search
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.1
Choose a base ref
...
head repository: readthedocs/readthedocs-sphinx-search
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.1.2
Choose a head ref

Commits on Nov 8, 2021

  1. Pin docutils

    astrojuanlu committed Nov 8, 2021
    Copy the full SHA
    a3758ae View commit details
  2. Copy the full SHA
    fe5e42b View commit details
  3. Cap Python version

    astrojuanlu committed Nov 8, 2021
    Copy the full SHA
    d23465e View commit details
  4. Add Node.js

    astrojuanlu committed Nov 8, 2021
    Copy the full SHA
    4f8c738 View commit details
  5. Copy the full SHA
    17810c5 View commit details
  6. Copy the full SHA
    4df18cb View commit details
  7. Upgrade sphinx_rtd_theme

    astrojuanlu committed Nov 8, 2021
    Copy the full SHA
    a452c11 View commit details
  8. Copy the full SHA
    e14eade View commit details
  9. Copy the full SHA
    fce78e5 View commit details
  10. Switch to older versions

    astrojuanlu committed Nov 8, 2021
    Copy the full SHA
    3931095 View commit details
  11. Copy the full SHA
    ef1c782 View commit details

Commits on Mar 14, 2022

  1. Docs: use sphinx 4.x (#105)

    stsewd authored Mar 14, 2022
    Copy the full SHA
    2e1d7b4 View commit details

Commits on Mar 17, 2022

  1. Rename master -> main (#106)

    stsewd authored Mar 17, 2022
    Copy the full SHA
    b006c2d View commit details

Commits on Mar 29, 2022

  1. Bump minimist from 1.2.5 to 1.2.6 (#107)

    * Bump minimist from 1.2.5 to 1.2.6
    
    Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
    - [Release notes](https://github.com/substack/minimist/releases)
    - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)
    
    ---
    updated-dependencies:
    - dependency-name: minimist
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * Pin jinja2
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
    dependabot[bot] and stsewd authored Mar 29, 2022
    Copy the full SHA
    6dedc18 View commit details
  2. Bump postcss from 7.0.35 to 7.0.39 (#100)

    Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.39.
    - [Release notes](https://github.com/postcss/postcss/releases)
    - [Changelog](https://github.com/postcss/postcss/blob/7.0.39/CHANGELOG.md)
    - [Commits](postcss/postcss@7.0.35...7.0.39)
    
    ---
    updated-dependencies:
    - dependency-name: postcss
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 29, 2022
    Copy the full SHA
    fd3eeed View commit details
  3. Bump path-parse from 1.0.6 to 1.0.7 (#99)

    Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
    - [Release notes](https://github.com/jbgutierrez/path-parse/releases)
    - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
    
    ---
    updated-dependencies:
    - dependency-name: path-parse
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 29, 2022
    Copy the full SHA
    4a5e229 View commit details

Commits on Apr 4, 2022

  1. Add sphinx metadata (#108)

    Fixes #91
    stsewd authored Apr 4, 2022
    Copy the full SHA
    c95e314 View commit details

Commits on Apr 6, 2022

  1. Copy the full SHA
    cc22224 View commit details

Commits on Apr 11, 2022

  1. Bump moment from 2.29.1 to 2.29.2 (#110)

    Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
    - [Release notes](https://github.com/moment/moment/releases)
    - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
    - [Commits](moment/moment@2.29.1...2.29.2)
    
    ---
    updated-dependencies:
    - dependency-name: moment
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 11, 2022
    Copy the full SHA
    19a262f View commit details

Commits on Apr 21, 2022

  1. Improve SEO of README & docs index

    ericholscher authored Apr 21, 2022
    Copy the full SHA
    bd2a79c View commit details
  2. Merge pull request #111 from readthedocs/better-seo

    Improve SEO of README & docs index
    ericholscher authored Apr 21, 2022
    Copy the full SHA
    d1d268d View commit details

Commits on May 11, 2022

  1. Release 0.1.2 (#113)

    stsewd authored May 11, 2022
    Copy the full SHA
    ec07503 View commit details
Showing with 116 additions and 69 deletions.
  1. +9 −1 .circleci/config.yml
  2. +20 −0 .readthedocs.yaml
  3. +0 −13 .readthedocs.yml
  4. +16 −0 CHANGELOG.rst
  5. +4 −4 Makefile
  6. +3 −3 README.rst
  7. +4 −0 docs/conf.py
  8. +10 −5 docs/requirements.txt
  9. +36 −40 package-lock.json
  10. +1 −1 package.json
  11. +1 −1 sphinx_search/__init__.py
  12. +7 −0 sphinx_search/extension.py
  13. +5 −1 tox.ini
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ commands:
type: string
sphinx-version:
type: string
default: "1,2,3,latest"
default: "1,2,3,4,latest"
steps:
- browser-tools/install-browser-tools
- checkout
@@ -48,11 +48,19 @@ jobs:
steps:
- run-tox:
version: py39
py310:
docker:
- image: 'cimg/python:3.10-browsers'
steps:
- run-tox:
version: py310
sphinx-version: 4,latest

workflows:
version: 2
tests:
jobs:
- py310
- py39
- py38
- py37
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

build:
os: "ubuntu-20.04"
tools:
# sphinx-js isn't compatible with python 3.10.
# https://github.com/mozilla/sphinx-js/issues/186
python: "3.9"
nodejs: "16"

python:
install:
- method: pip
path: .
- requirements: docs/requirements.txt

sphinx:
configuration: docs/conf.py

formats: []
13 changes: 0 additions & 13 deletions .readthedocs.yml

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
Version 0.1.2
-------------

:Date: May 11, 2022

* `@ericholscher <https://github.com/ericholscher>`__: Improve SEO of README & docs index (`#111 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/111>`__)
* `@dependabot[bot] <https://github.com/dependabot[bot]>`__: Bump moment from 2.29.1 to 2.29.2 (`#110 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/110>`__)
* `@stsewd <https://github.com/stsewd>`__: Test with sphinx 4 and python 3.10 (`#109 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/109>`__)
* `@stsewd <https://github.com/stsewd>`__: Add sphinx metadata (`#108 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/108>`__)
* `@dependabot[bot] <https://github.com/dependabot[bot]>`__: Bump minimist from 1.2.5 to 1.2.6 (`#107 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/107>`__)
* `@stsewd <https://github.com/stsewd>`__: Rename master -> main (`#106 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/106>`__)
* `@stsewd <https://github.com/stsewd>`__: Docs: use sphinx 4.x (`#105 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/105>`__)
* `@astrojuanlu <https://github.com/astrojuanlu>`__: Fix docs (`#102 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/102>`__)
* `@dependabot[bot] <https://github.com/dependabot[bot]>`__: Bump postcss from 7.0.35 to 7.0.39 (`#100 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/100>`__)
* `@dependabot[bot] <https://github.com/dependabot[bot]>`__: Bump path-parse from 1.0.6 to 1.0.7 (`#99 <https://github.com/readthedocs/readthedocs-sphinx-search/pull/99>`__)

Version 0.1.1
-------------

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
release: clean
git checkout master
git pull origin master
git checkout main
git pull origin main
python setup.py sdist bdist_wheel
python -m twine upload --sign --identity security@readthedocs.org dist/*

tag:
git checkout master
git pull origin master
git checkout main
git pull origin main
git tag `python -c "print(__import__('sphinx_search').__version__)"`
git push --tags

6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
readthedocs-sphinx-search
=========================
readthedocs-sphinx-search - Search as you type for Read the Docs
================================================================

|pypi| |docs| |license| |build-status|

`Sphinx`_ extension to enable *search as you type* within a full-page search UI for docs hosted on `Read the Docs`_.
``readthedocs-sphinx-search`` is a `Sphinx`_ extension to enable *search as you type* for docs hosted on `Read the Docs`_.
Try it at https://readthedocs-sphinx-search.readthedocs.io/en/latest/?rtd_search=testing.

.. _Sphinx: https://www.sphinx-doc.org/
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -191,3 +191,7 @@
def setup(app):
app.add_object_type('confval', 'confval',
'pair: %s; configuration value')

# Install necessary NPM dependencies
import subprocess
subprocess.check_output(["npm", "install", "-g", "jsdoc"])
15 changes: 10 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
sphinx==3.5.1
sphinx-prompt==1.1.0
sphinx-tabs==2.0.1
sphinx-rtd-theme==0.4.3
sphinx-notfound-page==0.3
sphinx==4.5.0
sphinx-prompt==1.5.0
sphinx-tabs==3.2.0
sphinx-rtd-theme==1.0.0
sphinx-notfound-page==0.8
sphinx-js==3.1

# sphinx-js pins jinja to a version that doesn't
# pin its version of markupsafe, markupsafe>=2.1
# isn't compatible with that version of jinja.
markupsafe==2.0.1
76 changes: 36 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "readthedocs-sphinx-search",
"version": "0.1.1",
"version": "0.1.2",
"description": "Enable search-as-you-type feature.",
"scripts": {
"build": "gulp",
2 changes: 1 addition & 1 deletion sphinx_search/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.1'
__version__ = '0.1.2'
7 changes: 7 additions & 0 deletions sphinx_search/extension.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os

from sphinx_search import __version__
from sphinx.errors import ExtensionError
from sphinx.util.fileutil import copy_asset

@@ -45,3 +46,9 @@ def setup(app):

app.connect('builder-inited', inject_static_files)
app.connect('build-finished', copy_asset_files)

return {
'version': __version__,
'parallel_read_safe': True,
'parallel_write_safe': True,
}
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tox]
minversion = 3.10
envlist =
py{36,37,38,39}-sphinx{1,2,3,latest}
py{36,37,38,39}-sphinx{1,2,3,4,latest}
py310-sphinx{4,latest}
docs
skipsdist = True

@@ -13,6 +14,9 @@ deps =
sphinx1: Sphinx<2.0
sphinx2: Sphinx<3.0
sphinx3: Sphinx<4.0
sphinx4: Sphinx<5.0
{sphinx1,sphinx2,sphinx3}: docutils<0.18
{sphinx1,sphinx2,sphinx3}: jinja2<3.1
sphinxlatest: Sphinx
commands = pytest {posargs}