Skip to content

Commit be8aa5d

Browse files
committed
Update ex_doc, add llms.txt support, update description
1 parent 430b56a commit be8aa5d

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

mix.exs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Membrane.RTP.H264.MixProject do
22
use Mix.Project
33

4-
@version "0.20.4"
4+
@version "0.20.5"
55
@github_url "https://github.com/membraneframework/membrane_rtp_h264_plugin"
66

77
def project do
@@ -22,7 +22,8 @@ defmodule Membrane.RTP.H264.MixProject do
2222
name: "Membrane RTP H264 Plugin",
2323
source_url: @github_url,
2424
docs: docs(),
25-
homepage_url: "https://membrane.stream"
25+
homepage_url: "https://membrane.stream",
26+
aliases: [docs: ["docs", &prepend_llms_links/1]]
2627
]
2728
end
2829

@@ -40,7 +41,6 @@ defmodule Membrane.RTP.H264.MixProject do
4041
[
4142
main: "readme",
4243
extras: ["README.md", "LICENSE"],
43-
formatters: ["html"],
4444
source_ref: "v#{@version}",
4545
nest_modules_by_prefix: [
4646
Membrane.RTP.H264
@@ -66,7 +66,7 @@ defmodule Membrane.RTP.H264.MixProject do
6666
{:membrane_rtp_format, "~> 0.11.0"},
6767
{:bunch, "~> 1.5"},
6868
# Dev
69-
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
69+
{:ex_doc, "~> 0.40", only: :dev, runtime: false},
7070
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
7171
{:credo, ">= 0.0.0", only: :dev, runtime: false}
7272
]
@@ -84,4 +84,16 @@ defmodule Membrane.RTP.H264.MixProject do
8484
opts
8585
end
8686
end
87-
end
87+
88+
defp prepend_llms_links(_) do
89+
path = "doc/llms.txt"
90+
91+
if File.exists?(path) do
92+
existing = File.read!(path)
93+
94+
header = "- [Membrane Core](https://hexdocs.pm/membrane_core/llms.txt)\n\n"
95+
96+
File.write!(path, header <> existing)
97+
end
98+
end
99+
end

0 commit comments

Comments
 (0)