{% set version = "1.2.0" %}
{% set name = "sphinx_rtd_theme" %}

package:
  name: {{ name }}-split
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: a0d8bd1a2ed52e0b338cbe19c4b2eef3c5e7a048769753dac6a9f059c7b641b8

build:
  number: 0

outputs:
  - name: {{ name }}
    script: build_base.bat  # [win]
    script: build_base.sh   # [not win]
    requirements:
      host:
        - pip
        - python
        - setuptools
        - wheel
      run:
        - python
        - sphinx >=1.6,<7
        - docutils <0.19
        - sphinxcontrib-jquery >=2.0.0,!=3.0.0  # [py>=3]
    test:
      imports:
        - sphinx_rtd_theme
      requires:
        - pip
      commands:
        - pip check

  - name: sphinx-rtd-theme
    build:
      noarch: python
    requirements:
      host:
        - python
      run:
        - python
        - {{ pin_subpackage(name, min_pin='x.x.x', max_pin='x.x.x') }}
    test:
      imports:
        - sphinx_rtd_theme

about:
  home: https://github.com/readthedocs/sphinx_rtd_theme/
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: Sphinx theme for readthedocs.org
  description: |
    This is a mobile-friendly sphinx theme made for readthedocs.org. It's currently in
    development there and includes some rtd variable checks that can be ignored if you're
    just trying to use it on your project outside of that site.
  dev_url: https://github.com/readthedocs/sphinx_rtd_theme/
  doc_url: https://sphinx-rtd-theme.readthedocs.io/

extra:
  recipe-maintainers:
    - chohner
    - SylvainCorlay
  skip-lints:
    - missing_pip_check
