Skip to content

Commit

Permalink
Update moduledocs
Browse files Browse the repository at this point in the history
  • Loading branch information
code-shoily committed Oct 25, 2023
1 parent 88a6fe8 commit f619787
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/helpers/meta.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule AdventOfCode.Helpers.Meta do
@doc """
@moduledoc """
Returns the info of the year. This returns the important links and info
of all the days completed.
"""
Expand Down
14 changes: 9 additions & 5 deletions lib/helpers/summarizer.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
defmodule AdventOfCode.Helpers.Summarizer do
@moduledoc"""
Collects summary information about the codebase such as number of stars, problems solved etc
"""

alias AdventOfCode.Helpers.Meta

@year_range 2015..2022
Expand All @@ -21,7 +25,7 @@ defmodule AdventOfCode.Helpers.Summarizer do

"""
#{trophy}
#{header}
|:---:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
#{content}
Expand Down Expand Up @@ -68,9 +72,9 @@ defmodule AdventOfCode.Helpers.Summarizer do
"""
<!-- AUTOGENERATED -- DO NOT EDIT -- use `mix gen_stats` -->
# Advent of Code #{year}
[Main Page](https://adventofcode.com/#{year}) | [Tests](/test/#{year})
#{links |> Enum.join(" | ")}
"""
end
Expand All @@ -90,9 +94,9 @@ defmodule AdventOfCode.Helpers.Summarizer do

"""
#{heading}
#{trophy}
#{table_header}
| :---: | :------: | ---: | :---: | :---: |
#{table_content}
Expand Down

0 comments on commit f619787

Please sign in to comment.