Skip to content

Commit

Permalink
Use container-fluid for API pages (#47)
Browse files Browse the repository at this point in the history
* Use container-fluid for API pages

* Use the container class instead
  • Loading branch information
Apostolique authored Dec 10, 2023
1 parent cfb0eb4 commit 1725b6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
_title: Reference
api: true
---

Welcome to the **MonoGame** reference documentation!
Expand Down
1 change: 1 addition & 0 deletions templates/monogame/ManagedReference.extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ exports.preTransform = function (model) {
model._title = model._path.replace(/^.*[\\/]/, '') // Remove path
.replace(/\.[^/.]+$/, ''); // Remove extension
}
model.api = true;
return model;
}
2 changes: 1 addition & 1 deletion templates/monogame/layout/_master.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
{{!body}}
{{/_overrideDocFx}}
{{^_overrideDocFx}}
<main class="container-xxl">
<main class="{{^api}}container-xxl{{/api}}{{#api}}container{{/api}}">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
Expand Down

0 comments on commit 1725b6e

Please sign in to comment.