Skip to content

Commit

Permalink
add link (#43)
Browse files Browse the repository at this point in the history
* add link
* fix path
  • Loading branch information
petercrocker authored Feb 10, 2025
1 parent 3290c85 commit 3a4cb02
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 45 deletions.
6 changes: 5 additions & 1 deletion docs/docs/nornir/readme.mdx → docs/docs/readme.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
title: Nornir plugin for Infrahub
title: Nornir plugin
---

A [Nornir](https://github.com/nornir-automation/nornir) plugin for Infrahub. Infrahub can be used as an inventory source for Nornir.

## Usage

For an example of how to use this plugin, see the [Simplifying Network Automation Workflows with Infrahub, Nornir, and Jinja2](https://www.opsmill.com/simplifying-network-automation-workflows-with-infrahub-nornir-and-jinja2/) blog post.

## Installation

```console
Expand Down
8 changes: 4 additions & 4 deletions docs/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';

const sidebars: SidebarsConfig = {
nornirSidebar: [
'nornir/readme',
'readme',
{
type: 'category',
label: 'Reference',
label: 'Nornir Plugin Reference',
items: [
'nornir/references/plugins/infrahub_inventory',
'nornir/references/plugins/artifact_tasks',
'references/plugins/infrahub_inventory',
'references/plugins/artifact_tasks',
],
}
]
Expand Down
19 changes: 0 additions & 19 deletions docs/src/pages/index.tsx

This file was deleted.

39 changes: 20 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pydantic = ">=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0"

[tool.poetry.group.dev.dependencies]
pytest = "*"
ruff = "0.3.3"
ruff = "0.9.5"
mypy = "*"
pytest-asyncio = "^0.21.1"
types-python-slugify = "*"
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

CURRENT_DIRECTORY = Path(__file__).resolve()
DOCUMENTATION_DIRECTORY = CURRENT_DIRECTORY.parent / "docs"
NORNIR_DOCUMENTATION_DIRECTORY = DOCUMENTATION_DIRECTORY / "docs" / "nornir"
NORNIR_DOCUMENTATION_DIRECTORY = DOCUMENTATION_DIRECTORY / "docs"

PLUGIN_TYPES: dict[str, str] = {"inventory": "inventory", "tasks": "tasks"}
PLUGINS_DIRECTORY = Path("nornir_infrahub/plugins")
Expand Down

0 comments on commit 3a4cb02

Please sign in to comment.