Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not view, or compile docs #1

Open
pablo-angulo opened this issue Jul 23, 2020 · 0 comments
Open

could not view, or compile docs #1

pablo-angulo opened this issue Jul 23, 2020 · 0 comments

Comments

@pablo-angulo
Copy link

  1. docs are linked from the pyxam main page, but they point to server rawgit.com, which no longer works.
  2. building the docs gives an error:

Traceback (most recent call last):
File "/home/user/extra/software/pyxam/pyxam/plugin_loader.py", line 39, in load_plugins
exec('import plugins.{}; load(plugins.{}.load())'.format(plugin, plugin))
File "", line 1, in
File "/home/user/extra/software/pyxam/pyxam/plugins/docs.py", line 69, in load
compile_docs(build)
File "/home/user/extra/software/pyxam/pyxam/plugins/docs.py", line 190, in compile_docs
compile_docs(path)
File "/home/user/extra/software/pyxam/pyxam/plugins/docs.py", line 188, in compile_docs
compile_doc(build, path)
File "/home/user/extra/software/pyxam/pyxam/plugins/docs.py", line 200, in compile_doc
pyxam.pyxam.start([
AttributeError: module 'pyxam' has no attribute 'pyxam'

which is solved by replacing

def compile_doc(build, doc):
    """
    Converts the given file from markdown to HTML and then copies it to the build directory.

    :param build: The directory of the file to compile
    :param doc: The file to compile
    """
    pyxam.pyxam.start([ ...

by

def compile_doc(build, doc):
    """
    Converts the given file from markdown to HTML and then copies it to the build directory.

    :param build: The directory of the file to compile
    :param doc: The file to compile
    """
    pyxam.start([ ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant