Skip to content

Commit

Permalink
Rework injecting of markdown files into rst #2
Browse files Browse the repository at this point in the history
  • Loading branch information
elchupanebrej committed Nov 24, 2024
1 parent 606fd89 commit 70adce3
Show file tree
Hide file tree
Showing 63 changed files with 3,227 additions and 3,728 deletions.
11 changes: 10 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
default_language_version:
python: python3.12
repos:
- repo: https://github.com/psf/black
rev: 24.10.0
Expand All @@ -19,7 +21,9 @@ repos:
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: "^.*\\.rst$"
- id: end-of-file-fixer
exclude: "^.*\\.rst$"
- id: check-yaml
- id: check-added-large-files
- id: check-toml
Expand Down Expand Up @@ -60,4 +64,9 @@ repos:
language: python
types: [python]
pass_filenames: false
additional_dependencies: ['docopt-ng', 'pycmarkgfm']
additional_dependencies:
- 'docopt-ng'
- 'pandoc'
- 'panflute'
- 'pycmarkgfm'
- 'pypandoc'
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_css_files = [
"css/custom.css",
]

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down
173 changes: 0 additions & 173 deletions docs/features.rst

This file was deleted.

44 changes: 0 additions & 44 deletions docs/features/Feature/Description.feature.html

This file was deleted.

40 changes: 40 additions & 0 deletions docs/features/Feature/Description.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Feature: Descriptions
^^^^^^^^^^^^^^^^^^^^^
Free-form descriptions can be placed underneath Feature,
Example/Scenario, Background, Scenario Outline and Rule. You can write
anything you like, as long as no line starts with a keyword.
Descriptions can be in the form of Markdown - formatters including the
official HTML formatter support this.
Scenario:
'''''''''
- Given File "Description.feature" with content:
.. code:: gherkin
Feature:
My Feature description
Scenario:
Given I check feature description
- And File "conftest.py" with content:
.. code:: python
from pytest_bdd import given
@given('I check feature description')
def step(feature):
assert feature.description == "My Feature description"
- When run pytest
- Then pytest outcome must contain tests with statuses:
====== ======
passed failed
====== ======
1 0
====== ======
Expand Down
Loading

0 comments on commit 70adce3

Please sign in to comment.