Skip to content

Commit

Permalink
Fix docs banner (#2)
Browse files Browse the repository at this point in the history
* fix docs banner

* patch version
  • Loading branch information
Colin Sullivan authored Dec 2, 2023
1 parent 39ecf13 commit 07dff39
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Advent of Code 2023

<p align="center">
<a href="https://sullivancolin.github.io/advent_of_code/"><img src="https://sullivancolin.github.io/advent_of_code/images/IMG_5796.JPG" width="300", height="300" alt="aoc"></a>
</p>

[![CI](https://github.com/sullivancolin/advent_of_code/actions/workflows/CI.yml/badge.svg)](https://github.com/sullivancolin/advent_of_code/actions)

[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/sullivancolin/advent_of_code)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)

[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/sullivancolin/advent-of-code)

My record of current and past attempts at Advent of Code in Python. (I usually Peter out around the second week as they take more time and I'm spending more time with family.)
My record of current and past attempts at Advent of Code in Python. (I usually peter out around the second week as they take more time and I'm spending more time with family.)

## Installation

Expand Down Expand Up @@ -38,4 +42,4 @@ To run tests for a single day run `pytest tests/test_day1.py`


## Documentation
Documentation is provided via `mkdocs-material` and `mkdocstrings` and are generated from the source code, and host on github pages.
Documentation is provided via `mkdocs-material` and `mkdocstrings` and are generated from the source code, and host on github pages.
8 changes: 5 additions & 3 deletions docs/docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ $ aoc [OPTIONS] COMMAND [ARGS]...

**Commands**:

* `day1`: command for running day1 stars
* `day1`: Command for running day1 stars
* `debug-version-info`: Print debug information to terminal.

## `aoc day1`

command for running day1 stars
Command for running day1 stars

**Usage**:

Expand All @@ -37,7 +37,7 @@ $ aoc day1 [OPTIONS] COMMAND [ARGS]...
**Commands**:

* `part1`: Calculate the sum of all the first and...
* `part2`
* `part2`: Calculate the sum of all the first and...

### `aoc day1 part1`

Expand All @@ -59,6 +59,8 @@ $ aoc day1 part1 [OPTIONS] [INPUT_PATH]

### `aoc day1 part2`

Calculate the sum of all the first and last number words or digits on each line concatenated together.

**Usage**:

```console
Expand Down
5 changes: 3 additions & 2 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<a href="https://sullivancolin.github.io/advent_of_code/"><img src="https://sullivancolin.github.io/advent_of_code/images/banner.png" alt="aoc"></a>
<a href="https://sullivancolin.github.io/advent_of_code/"><img src="https://sullivancolin.github.io/advent_of_code/images/IMG_5796.JPG" width="300", height="300" alt="aoc"></a>
</p>

[![CI](https://github.com/sullivancolin/advent_of_code/actions/workflows/CI.yml/badge.svg)](https://github.com/sullivancolin/advent_of_code/actions)
Expand All @@ -10,6 +10,7 @@

[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/sullivancolin/advent-of-code)

My record of current and past attempts at Advent of Code in Python. (I usually peter out around the second week as they take more time and I'm spending more time with family.)
## Installation

### Using the `devcontainter`
Expand Down Expand Up @@ -39,4 +40,4 @@ To run tests for a single day run `pytest tests/test_day1.py`


## Documentation
Documentation is provided via `mkdocs-material` and `mkdocstrings` and are generated from the source code, and host on github pages.
Documentation is provided via `mkdocs-material` and `mkdocstrings` and are generated from the source code, and host on github pages.
2 changes: 1 addition & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repo_name: aoc

edit_uri: ""
nav:
- Getting Started: index.md
- Home: index.md
- CLI: CLI.md
- Day 1:
- Part 1: day1/part1.md
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aoc"
version = "0.1"
version = "0.1.1"
description = "Record of current and past attempts at Advent-of-Code in Python"
authors = ["Colin Sullivan <[email protected]>"]
readme = "README.md"
Expand Down
3 changes: 2 additions & 1 deletion src/aoc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def debug_version_info() -> None:


day1app = typer.Typer(
help="command for running day1 stars",
help="Command for running day1 stars",
rich_markup_mode="rich",
)

Expand All @@ -96,6 +96,7 @@ def day1part2(
Path("data/day1.txt"), help="Path to file containing the input"
),
) -> None:
"""Calculate the sum of all the first and last number words or digits on each line concatenated together."""
with open(input_path) as infile:
input_text = infile.read()
total_sum = word_calibration_sum(input_text)
Expand Down

0 comments on commit 07dff39

Please sign in to comment.