Hi, I am working on my first kedro project and wou...
# questions
Hi, I am working on my first kedro project and would like to generate som docs, but i get this error
Copy code
christoph.imler@M-FVFFR0PQQ05P pt-kedro % kedro build-docs
Usage: kedro [OPTIONS] COMMAND [ARGS]...
Try 'kedro -h' for help.

Error: No such command 'build-docs'.
christoph.imler@M-FVFFR0PQQ05P pt-kedro %
I have inculded the documentaion tool when i created my project and it seems to be installed according to my pyproject-file
Copy code
docs = [
    "ipykernel>=5.3, <7.0",

dependencies = {file = "requirements.txt"}
version = {attr = "pt_kedro.__version__"}

where = ["src"]
namespaces = false

package_name = "pt_kedro"
project_name = "pt_kedro"
kedro_init_version = "0.19.1"
tools = ['Linting', 'Testing', 'Custom Logging', 'Documentation', 'Data Structure', 'Kedro Viz']
How can I fix this? I had no success googling it.
Hi @Christoph Imler, the
kedro build-docs
command doesn't exist anymore. Instead you'll have to use
to build the docs. During project creation Kedro will add configuration for you, but the building of the docs is done by sphinx and not Kedro.
On the Kedro side we usually run something like
Copy code
sphinx-build -WETa --keep-going -j auto -D language=en -b html -d docs/build/doctrees docs/source docs/build/html`
I'm not a Sphinx expert though, so I'd still recommend reading the Sphinx docs 🙂
Great! Thanks:)
why did you remove
kedro build-docs
? It seemed like an easy way to create this
It was a long process, which involved research of all our cli commands, and it turned out that
kedro build-docs
wasn't used a lot at all. We made the decision to remove it to reduce the maintenance burden and focus more on highly used features. If you're interested you can read more about it in this issue: https://github.com/kedro-org/kedro/issues/1293
K 1