Skip to content

Commit fa6f279

Browse files
committed
Link the models guide with a validated liquid tag
The /guides/models/ URL 404s: jekyll-redirect-from emits flat guides/models.html files, which GitHub Pages serves without a trailing slash but not with one. Use {% link _advanced/models.md %} instead, which resolves to the canonical /models/ URL at build time and fails the build if the target moves. The tag targets the 1.x docs tree because the generated page only renders in the frozen 1.x site build; the /next build replaces it with a redirect stub.
1 parent 415b0f6 commit fa6f279

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/_reference/available-models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Your installed gem may bundle an older snapshot of the registry. Refresh it to g
2929
RubyLLM.models.refresh!
3030
```
3131

32-
See [the models guide](https://rubyllm.com/guides/models/) for how refreshing works in plain Ruby and Rails.
32+
See [the models guide]({% link _advanced/models.md %}) for how refreshing works in plain Ruby and Rails.
3333

3434
## Models by Provider
3535

tasks/models.rake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def status(provider_sym)
157157
end
158158
end
159159

160+
# The generated page renders inside the frozen 1.x site build; the /next
161+
# build replaces it with a redirect stub (docs/bin/build-versions.sh).
162+
# Liquid links must therefore target the 1.x docs tree.
160163
def generate_models_markdown
161164
models = RubyLLM.models.all
162165
total_models = models.count
@@ -195,7 +198,7 @@ def generate_models_markdown
195198
RubyLLM.models.refresh!
196199
```
197200
198-
See [the models guide](https://rubyllm.com/guides/models/) for how refreshing works in plain Ruby and Rails.
201+
See [the models guide]({% link _advanced/models.md %}) for how refreshing works in plain Ruby and Rails.
199202
200203
## Models by Provider
201204

0 commit comments

Comments
 (0)