# Grenade does not support "python setup.py publish_sphinx", thus
# we cannot use the normal docs jobs.
- job:
    name: grenade-publish-docs
    node: ubuntu-xenial

    builders:
      - zuul-git-prep-upper-constraints
      - install-distro-packages
      - revoke-sudo
      - run-tox:
          envlist: 'docs'
      - add-docs-root-marker:
          docsrootdir: doc/build/html

    publishers:
      - afs:
          site: afs-docs
          source: 'doc/build/html/**'
          target: 'developer/grenade'
          remove-prefix: 'doc/build/html'
      - console-log

- job:
    name: gate-grenade-publish-docs
    node: ubuntu-xenial

    builders:
      - zuul-git-prep-upper-constraints
      - install-distro-packages
      - revoke-sudo
      - run-tox:
          envlist: 'docs'

    publishers:
      - upload-sphinx-draft
      - console-log