Skip to content

Commit 782d7e1

Browse files
committed
Move docs/metadata to pyinfra.api.metadata need to
fix docs generation error for missing jinja2 vars
1 parent 83a25c0 commit 782d7e1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docs/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import os
2-
import sys
31
from datetime import date
42
from os import environ, mkdir, path
53
from shutil import rmtree
64

75
import guzzle_sphinx_theme
86

97
from pyinfra import __version__, local
10-
11-
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
12-
import metadata # noqa # this is a local module
8+
from pyinfra.api import metadata
139

1410
copyright = "Nick Barrett {0} — pyinfra v{1}".format(
1511
date.today().year,

docs/metadata.py renamed to src/pyinfra/api/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Support parsing pyinfra-metadata.toml
33
4-
Currently just parses plugins their metadata.
4+
Currently just parses plugins and their metadata.
55
"""
66

77
import tomllib

0 commit comments

Comments
 (0)