GithubHelp home page GithubHelp logo

Comments (3)

pawamoy avatar pawamoy commented on June 16, 2024

Hello.

Any output coming from the setup commands is discarded, because the legacy Python handler reads the output of pytkdocs and loads it as JSON. Your print statement would break that if we didn't discard it.

Not sure what you mean about forwarding to a file: these are Python statements, not shell commands, so > is an operator here, not the shell redirection symbol.

About not seeing any API docs generated, I invite you to open an issue in https://github.com/mkdocstrings/python-legacy. But before that: have you tried the new handler? It's much better than the legacy one :)

from mkdocs.

vkuehn avatar vkuehn commented on June 16, 2024

Hello,

usually I can write log output that way to text files.

Not really sure how to diasable the old handler and use the new one.
I have that in poetry.lock

[package.extras]
docs = ["mdx-gh-links (>=0.2)", "mkdocs (>=1.5)", "mkdocs-gen-files", "mkdocs-literate-nav", "mkdocs-nature (>=0.6)", "mkdocs-section-index", "mkdocstrings[python]"]
testing = ["coverage", "pyyaml"]

and in a make file call it like

.PHONY: docs-test
docs-test: ## Test if documentation can be built without warnings or errors
	@poetry run mkdocs build -s

anything else to be done ?

from mkdocs.

pawamoy avatar pawamoy commented on June 16, 2024

usually I can write log output that way to text files.

In shell scripts yes, not in Python πŸ™‚


With mkdocstrings[python] in your dependencies, and a recent lock file, this should install the new handler πŸ‘
If that's the case, then the options you are using are outdated (they are for the legacy handler).

Try this instead:

plugins:
  - search
  - mkdocstrings:
      handlers:
        python:
          paths: [..]

See the docs for the paths option: https://mkdocstrings.github.io/python/usage/#finding-modules.

I'll move this issue to a discussion since there's nothing actionable for MkDocs.

from mkdocs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.