Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: refactor to pyproject.toml, uv and subdirectory for markdown files #507

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 11 additions & 18 deletions .github/workflows/cd-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
- name: Setup uv
uses: astral-sh/setup-uv@v4
with:
python-version: "3.10"

- uses: actions/cache@v4
id: pip-cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ hashFiles('docs/_kalico/mkdocs-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
if: steps.pip-cache.outputs.cache-hit != 'true'
run: pip install -r docs/_kalico/mkdocs-requirements.txt
version: 'latest'
enable-cache: true
cache-dependency-glob: "docs/uv.lock"

- name: Setup Python
working-directory: docs/
run: uv python install

- name: Build MkDocs Pages
run: |
cd docs/
mkdocs build -f _kalico/mkdocs.yml
working-directory: docs/
run: uv run mkdocs build

- name: Deploy
uses: JamesIves/[email protected]
Expand Down
29 changes: 11 additions & 18 deletions .github/workflows/ci-docs_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
- name: Setup uv
uses: astral-sh/setup-uv@v4
with:
python-version: "3.10"

- uses: actions/cache@v4
id: pip-cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ hashFiles('docs/_kalico/mkdocs-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
if: steps.pip-cache.outputs.cache-hit != 'true'
run: pip install -r docs/_kalico/mkdocs-requirements.txt
version: 'latest'
enable-cache: true
cache-dependency-glob: "docs/uv.lock"

- name: Setup Python
working-directory: docs/
run: uv python install

- name: Build MkDocs Pages
run: |
cd docs/
mkdocs build -f _kalico/mkdocs.yml --strict
working-directory: docs/
run: uv run mkdocs build --strict
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p align="center"><a href="https://docs.kalico.gg"><img align="center" src="docs/logo/kalico-big.png" alt="Kalico Logo"></a></p>
<p align="center"><a href="https://docs.kalico.gg"><img align="center" src="docs/src/logo/kalico-big.png" alt="Kalico Logo"></a></p>

[![Action Status](https://github.com/KalicoCrew/kalico/actions/workflows/ci-build_test.yaml/badge.svg?branch=main)](https://github.com/KalicoCrew/kalico/actions/workflows/ci-build_test.yaml)

Expand Down Expand Up @@ -128,8 +128,8 @@ See the [Danger Features document](https://docs.kalico.gg/Danger_Features.html)

- [danger_options: configurable homing constants](https://github.com/KalicoCrew/kalico/pull/378)

If you're feeling adventurous, take a peek at the extra features in the bleeding-edge-v2 branch [feature documentation](docs/Bleeding_Edge.md)
and [feature configuration reference](docs/Config_Reference_Bleeding_Edge.md):
If you're feeling adventurous, take a peek at the extra features in the bleeding-edge-v2 branch [feature documentation](docs/src/Bleeding_Edge.md)
and [feature configuration reference](docs/src/Config_Reference_Bleeding_Edge.md):

- [extruder/pa: do not smooth base extruder position, only advance](https://github.com/KalicoCrew/kalico/pull/266)

Expand Down
2 changes: 1 addition & 1 deletion config/example-cartesian.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-corexy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-corexz.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-delta.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_a]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-deltesian.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_left]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-extras.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Documentation on config parameters has moved to: docs/Config_Reference.md
# Documentation on config parameters has moved to: docs/src/Config_Reference.md

# The latest version of the config reference is also available online at:
# https://www.klipper3d.org/Config_Reference.html
2 changes: 1 addition & 1 deletion config/example-hybrid-corexy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-hybrid-corexz.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-polar.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# POLAR KINEMATICS ARE A WORK IN PROGRESS. Moves around the 0, 0
# position are known to not work properly.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_bed]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-rotary-delta.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ROTARY DELTA KINEMATICS ARE A WORK IN PROGRESS. Homing moves may
# timeout and some boundary checks are not implemented.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_a]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example-winch.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# home the printer, manually send movement commands until the toolhead
# is at 0, 0, 0 and then issue a G28 command.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_a]
step_pin: PF0
Expand Down
2 changes: 1 addition & 1 deletion config/example.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Documentation on config parameters has moved to: docs/Config_Reference.md
# Documentation on config parameters has moved to: docs/src/Config_Reference.md

# The latest version of the config reference is also available online at:
# https://www.klipper3d.org/Config_Reference.html
2 changes: 1 addition & 1 deletion config/generic-I3DBEEZ9.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# file named "firmware.bin" on an SD card and then restart the I3DBEEZ9
# with that SD card.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PE9
Expand Down
2 changes: 1 addition & 1 deletion config/generic-alligator-r2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# See alligator github for alligator manager:
# https://github.com/3Dartists/alligator-manager

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[static_digital_output DRV8825_microstepping]
pins:PC10
Expand Down
2 changes: 1 addition & 1 deletion config/generic-alligator-r3.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# See alligator github for alligator manager:
# https://github.com/3Dartists/alligator-manager

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[static_digital_output DRV8825_microstepping]
pins:PC10
Expand Down
2 changes: 1 addition & 1 deletion config/generic-archim2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# boards. To use this config, the firmware should be compiled for the
# SAM3x8e.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PC6
Expand Down
2 changes: 1 addition & 1 deletion config/generic-azteeg-x5-mini-v3.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file contains common pin mappings for the Azteeg X5 Mini v3. To use
# this config, the firmware should be compiled for the LPC1769.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: P2.1
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-e3-rrf-v1.1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# file named "firmware.bin" on an SD card and then restart the E3 RRF
# 1.1 with that SD card.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PD5
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-gtr.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# file named "firmware.bin" on an SD card and then restart the GTR
# with that SD card.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PC15
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-manta-e3ez.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# STM32G0B1 with a "8KiB bootloader" "8 MHz crystal"
# and "USB (on PA11/PA12)" or "CAN bus (on PB12/PB13)".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PA14
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-manta-m4p.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" and USB communication.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PC6
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-manta-m5p.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# STM32G0B1 with a "8KiB bootloader" "8 MHz crystal"
# and "USB (on PA11/PA12)" or "CAN bus (on PD0/PD1)".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PC8
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-manta-m8p-v1.0.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" and USB communication.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PE2
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-manta-m8p-v1.1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# STM32G0B1 with a "8KiB bootloader" "8 MHz crystal"
# and "USB (on PA11/PA12)" or "CAN bus (on PD12/PD13)".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PE2
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-octopus-max-ez.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# STM32H723 with a "128KiB bootloader" "25 MHz crystal"
# and "USB (on PA11/PA12)" or "CAN bus (on PD0/PD1)".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

# Motor-1
[stepper_x]
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-octopus-pro-v1.0.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# bootloader" and an "8MHz crystal". For STM32H723 boards use a
# "128KiB bootloader" and a "25Mhz crystal".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

# Driver0
[stepper_x]
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-octopus-pro-v1.1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# micro-controller, select a "128KiB bootloader", and select a "25Mhz
# crystal".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

# Driver0
[stepper_x]
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-octopus-v1.1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# clock reference. For STM32F429 boards use a "32KiB bootloader" and
# an "8MHz crystal".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

# Driver0
[stepper_x]
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-skr-2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# file named "firmware.bin" on an SD card and then restart the SKR 2
# with that SD card.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

# Note: The initial revision of this board has a flaw that can cause
# damage to itself and other boards. Be sure to verify the board is
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-skr-3.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# options", "STM32H743" or "STM32H723", "128KiB bootloader",
# and "25MHz clock".

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PD4
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-skr-cr6-v1.0.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# file named "firmware.bin" on an SD card and then restart the SKR
# CR6 V1.0 with that SD card.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PB13
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-skr-e3-dip.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# file named "firmware.bin" on an SD card and then restart the SKR E3
# DIP with that SD card.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

# Note: This board has a design flaw in its thermistor circuits that
# cause inaccurate temperatures (most noticeable at low temperatures).
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-skr-e3-turbo.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Turbo. To use this config, the firmware should be compiled for the
# LPC1769.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: P1.4
Expand Down
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-skr-mini-e3-v1.0.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.

# See docs/Config_Reference.md for a description of parameters.
# See docs/src/Config_Reference.md for a description of parameters.

# Note: This board has a design flaw in its thermistor circuits that
# cause inaccurate temperatures (most noticeable at low temperatures).
Expand Down
Loading
Loading