Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The package can be installed by adding `membrane_webrtc_plugin` to your list of
```elixir
def deps do
[
{:membrane_webrtc_plugin, "~> 0.26.5"}
{:membrane_webrtc_plugin, "~> 0.26.6"}
]
end
```
Expand Down
30 changes: 26 additions & 4 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.WebRTC.Plugin.Mixfile do
use Mix.Project

@version "0.26.5"
@version "0.26.6"
@github_url "https://github.com/membraneframework/membrane_webrtc_plugin"

def project do
Expand All @@ -21,7 +21,8 @@ defmodule Membrane.WebRTC.Plugin.Mixfile do
# docs
name: "Membrane WebRTC plugin",
source_url: @github_url,
docs: docs()
docs: docs(),
aliases: [docs: ["docs", &append_llms_links/1]]
]
end

Expand Down Expand Up @@ -60,7 +61,7 @@ defmodule Membrane.WebRTC.Plugin.Mixfile do
{:membrane_file_plugin, "~> 0.17.0", only: :test},
{:membrane_realtimer_plugin, "~> 0.10.0", only: :test},
{:membrane_opus_plugin, "~> 0.20.0", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:ex_doc, ">= 0.40.0", only: :dev, runtime: false},
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
{:credo, ">= 0.0.0", only: :dev, runtime: false}
]
Expand Down Expand Up @@ -95,9 +96,30 @@ defmodule Membrane.WebRTC.Plugin.Mixfile do
[
main: "readme",
extras: ["README.md", "LICENSE"],
formatters: ["html"],
source_ref: "v#{@version}",
nest_modules_by_prefix: [Membrane.WebRTC]
]
end

defp append_llms_links(_args) do
output_dir = docs()[:output] || "doc"
path = Path.join(output_dir, "llms.txt")

if File.exists?(path) do
existing = File.read!(path)

footer = """


## See Also

- [Membrane Framework AI Skill](https://hexdocs.pm/membrane_core/skill.md)
- [Membrane Core](https://hexdocs.pm/membrane_core/llms.txt)
"""

File.write!(path, String.trim_trailing(existing) <> footer)
else
IO.warn("#{path} not found — llms.txt was not generated, check your ex_doc configuration")
end
end
end
Loading
Loading