sphinxcontrib-versioning icon indicating copy to clipboard operation
sphinxcontrib-versioning copied to clipboard

how to use in the right way?

Open mgiaco opened this issue 7 years ago • 8 comments

Hi,

I do have a test project with a "doc" folder. In the doc folder I do have a sphinx build under "doc\build\html".

Then I run:

sphinx-versioning build -r master doc doc/build/html

And I get:

=> Gathering info about the remote git repository...
=> Getting list of all remote branches/tags...
=> Found: master v1.0 v1.1 v1.2
=> With docs:
=> No docs found in any remote branch/tag. Nothing to do.
Failure.

So what´s wrong here i read the help but did not find the error.

many thanks

mgiaco avatar Jul 11 '17 14:07 mgiaco

You need to commit the doc folder and push it to origin.

Robpol86 avatar Jul 11 '17 14:07 Robpol86

Okay but I already did that. Should I also commit the build in that doc folder?

mgiaco avatar Jul 11 '17 21:07 mgiaco

Okay now I have some error:

# Sphinx version: 1.6.3
# Python version: 3.6.1 (CPython)
# Docutils version: 0.13.1 release
# Jinja2 version: 2.9.5
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "C:\test\lib\site-packages\sphinx\cmdline.py", line 305, in main
    opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
  File "C:\test\lib\site-packages\sphinx\application.py", line 234, in __init__
    self._init_builder()
  File "C:\test\lib\site-packages\sphinx\application.py", line 312, in _init_builder
    self.emit('builder-inited')
  File "C:\test\lib\site-packages\sphinx\application.py", line 489, in emit
    return self.events.emit(event, self, *args)
  File "C:\test\lib\site-packages\sphinx\events.py", line 79, in emit
    results.append(callback(*args))
  File "C:\test\lib\site-packages\sphinxcontrib\versioning\sphinx_.py", line 60, in builder_inited
    app.config.html_sidebars['**'] = StandaloneHTMLBuilder.default_sidebars + ['versions.html']
AttributeError: type object 'StandaloneHTMLBuilder' has no attribute 'default_sidebars'

So I use the alabaster theme but I have read that it is supported.

mgiaco avatar Jul 12 '17 06:07 mgiaco

@mgiaco I am getting the same error. Were you able to resolve the issue?

Levi-Armstrong avatar Oct 04 '17 16:10 Levi-Armstrong

@Levi-Armstrong no sorry. I do not search for a solution.

mgiaco avatar Oct 05 '17 05:10 mgiaco

Getting the same error.

twiecki avatar Oct 21 '17 19:10 twiecki

This error is due to newer sphinx version(1.6). #46

suush avatar Nov 24 '17 11:11 suush

Is it going to be fixed?

gryphon2411 avatar Dec 16 '19 16:12 gryphon2411