Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
utilize underscore instead of dash for docs/examples/
  • Loading branch information
Archmonger committed Dec 2, 2024
commit 35b4d550a751cd21f1d576b171f254df7819fea7
17 changes: 17 additions & 0 deletions docs/examples/html/tmp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Create a list of all files in this file's directory that end with .py

import os
import pathlib

# Get the current directory
current_directory = pathlib.Path(__file__).parent

# Get all files in the current directory
files = os.listdir(current_directory)

# Filter the files to only include .py files
py_files = [file for file in files if file.endswith(".html")]

# Rename the files on disk
for file in py_files:
os.rename(current_directory / file, current_directory / file.replace("-", "_"))
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/examples/python/example/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""This module exists only to satisfy type checkers.

Do not use the files in this module as examples within the docs."""
5 changes: 5 additions & 0 deletions docs/examples/python/example/components.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
"""This module exists only to satisfy type checkers.

Do not use the files in this module as examples within the docs."""


def child_component(): ...
4 changes: 4 additions & 0 deletions docs/examples/python/example/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""This module exists only to satisfy type checkers.

Do not use the files in this module as examples within the docs."""

from python.hello_world_cbv import HelloWorld
from python.hello_world_fbv import hello_world

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.