11defmodule Membrane.AudioMix.Mixfile do
22 use Mix.Project
33
4- @ version "0.16.4 "
4+ @ version "0.16.5 "
55 @ github_url "https://github.com/membraneframework/membrane_audio_mix_plugin"
66
77 def project do
@@ -23,7 +23,8 @@ defmodule Membrane.AudioMix.Mixfile do
2323 name: "Membrane Audio Mix plugin" ,
2424 source_url: @ github_url ,
2525 homepage_url: "https://membraneframework.org" ,
26- docs: docs ( )
26+ docs: docs ( ) ,
27+ aliases: [ docs: [ "docs" , & append_llms_links / 1 ] ]
2728 ]
2829 end
2930
@@ -43,7 +44,7 @@ defmodule Membrane.AudioMix.Mixfile do
4344 { :membrane_raw_audio_format , "~> 0.12.0" } ,
4445 { :unifex , "~> 1.0" } ,
4546 { :bunch , "~> 1.3" } ,
46- { :ex_doc , ">= 0.0 .0" , only: :dev , runtime: false } ,
47+ { :ex_doc , ">= 0.40 .0" , only: :dev , runtime: false } ,
4748 { :dialyxir , ">= 0.0.0" , only: :dev , runtime: false } ,
4849 { :credo , ">= 0.0.0" , only: :dev , runtime: false } ,
4950 { :membrane_file_plugin , "~> 0.16.0" , only: :test } ,
@@ -82,7 +83,6 @@ defmodule Membrane.AudioMix.Mixfile do
8283 [
8384 main: "readme" ,
8485 extras: [ "README.md" , "LICENSE" ] ,
85- formatters: [ "html" ] ,
8686 source_ref: "v#{ @ version } " ,
8787 nest_modules_by_prefix: [
8888 Membrane.AudioMixer ,
@@ -99,4 +99,26 @@ defmodule Membrane.AudioMix.Mixfile do
9999 ]
100100 ]
101101 end
102+
103+ defp append_llms_links ( _args ) do
104+ output_dir = docs ( ) [ :output ] || "doc"
105+ path = Path . join ( output_dir , "llms.txt" )
106+
107+ if File . exists? ( path ) do
108+ existing = File . read! ( path )
109+
110+ footer = """
111+
112+
113+ ## See Also
114+
115+ - [Membrane Framework AI Skill](https://hexdocs.pm/membrane_core/skill.md)
116+ - [Membrane Core](https://hexdocs.pm/membrane_core/llms.txt)
117+ """
118+
119+ File . write! ( path , String . trim_trailing ( existing ) <> footer )
120+ else
121+ IO . warn ( "#{ path } not found — llms.txt was not generated, check your ex_doc configuration" )
122+ end
123+ end
102124end
0 commit comments