Skip to content

Commit

Permalink
Use docs's assets options instead of copying files manually
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Aug 7, 2024
1 parent b4ae69b commit cea5a67
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ defmodule ExWebRTC.MixProject do
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: "Implementation of the W3C WebRTC API",
aliases: aliases(),
package: package(),
deps: deps(),

Expand Down Expand Up @@ -73,12 +72,6 @@ defmodule ExWebRTC.MixProject do
]
end

defp aliases do
[docs: ["docs", &copy_images/1]]
end

defp copy_images(_), do: File.cp_r!("guides/assets", "doc/assets")

defp docs do
intro_guides = ["intro", "negotiation", "forwarding", "consuming"]
advanced_guides = ["modifying", "mastering_transceivers", "debugging"]
Expand All @@ -90,6 +83,7 @@ defmodule ExWebRTC.MixProject do
["README.md"] ++
Enum.map(intro_guides, &"guides/introduction/#{&1}.md") ++
Enum.map(advanced_guides, &"guides/advanced/#{&1}.md"),
assets: "guides/assets",
source_ref: "v#{@version}",
formatters: ["html"],
before_closing_body_tag: &before_closing_body_tag/1,
Expand Down

0 comments on commit cea5a67

Please sign in to comment.