httpx
This commit is contained in:
parent
9199631ea5
commit
c244a816f3
1 changed files with 5 additions and 5 deletions
|
@ -2,14 +2,12 @@ from __future__ import annotations
|
||||||
|
|
||||||
|
|
||||||
from docutils import nodes
|
from docutils import nodes
|
||||||
|
|
||||||
|
|
||||||
from sphinx.application import Sphinx
|
from sphinx.application import Sphinx
|
||||||
|
|
||||||
from sphinx.util.docutils import SphinxDirective, SphinxRole
|
from sphinx.util.docutils import SphinxDirective, SphinxRole
|
||||||
|
|
||||||
from sphinx.util.typing import ExtensionMetadata
|
from sphinx.util.typing import ExtensionMetadata
|
||||||
|
|
||||||
|
from httpx import get
|
||||||
|
|
||||||
class HelloDirective(SphinxDirective):
|
class HelloDirective(SphinxDirective):
|
||||||
"""A directive to say hello!"""
|
"""A directive to say hello!"""
|
||||||
|
|
||||||
|
@ -17,7 +15,9 @@ class HelloDirective(SphinxDirective):
|
||||||
|
|
||||||
|
|
||||||
def run(self) -> list[nodes.Node]:
|
def run(self) -> list[nodes.Node]:
|
||||||
paragraph_node = nodes.paragraph(text=f'hello {self.arguments[0]}!')
|
content = get("https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/commit/v1.1_001/firefox/00-proxy.yml")
|
||||||
|
#paragraph_node = nodes.paragraph(text=f'hello {self.arguments[0]}!')
|
||||||
|
paragraph_node = nodes.paragraph(text=content.text)
|
||||||
return [paragraph_node]
|
return [paragraph_node]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue