diff --git a/Dockerfile b/Dockerfile index 91c77f1..b0b871c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -124,6 +124,12 @@ COPY skins/Vector/resources/skins.vector.styles/components/TableOfContents.less /var/www/html/skins/Vector/resources/skins.vector.styles/components/TableOfContents.less COPY skins/Vector/resources/skins.vector.styles/layouts/screen.less \ /var/www/html/skins/Vector/resources/skins.vector.styles/layouts/screen.less +COPY skins/Vector/includes/templates/Sidebar.mustache \ + /var/www/html/skins/Vector/includes/templates/Sidebar.mustache +COPY skins/Vector/includes/templates/skin.mustache \ + /var/www/html/skins/Vector/includes/templates/skin.mustache +COPY skins/Vector/resources/skins.vector.styles/components/MenuTabs.less \ + /var/www/html/skins/Vector/resources/skins.vector.styles/components/MenuTabs.less # composer.local.json merges in composer.json from caliper extension, so we # need to run composer update after getting the extensions. diff --git a/skins/Vector/includes/templates/Sidebar.mustache b/skins/Vector/includes/templates/Sidebar.mustache new file mode 100644 index 0000000..adb9f43 --- /dev/null +++ b/skins/Vector/includes/templates/Sidebar.mustache @@ -0,0 +1,30 @@ +{{! + @typedef object emphasized-sidebar-action + @prop string href + @prop string text + + string html-logo-attributes for site logo. Must be used inside tag e.g. `class="logo" lang="en-gb"` + MenuDefinition data-portlets-first + MenuDefinition[] array-portlets-rest + emphasized-sidebar-action data-emphasized-sidebar-action For displaying an emphasized action in the sidebar. +}} + + diff --git a/skins/Vector/includes/templates/skin.mustache b/skins/Vector/includes/templates/skin.mustache new file mode 100644 index 0000000..da1d1b6 --- /dev/null +++ b/skins/Vector/includes/templates/skin.mustache @@ -0,0 +1,86 @@ +{{! + string|null html-site-notice the contents of a banner defined in MediaWiki:Sitenotice. + Also used by CentralNotice to inject banners into Vector. + Indicator[] array-indicators wiki-defined badges such as "good article", + "featured article". An empty array if none are defined. + string html-title + bool is-article + string msg-tagline + string html-subtitle + string html-undelete-link + string html-newtalk + string msg-vector-jumptonavigation + string msg-vector-jumptosearch + string msg-vector-jumptocontent + string html-body-content + string html-categories + string html-after-content + LogoOptions data-logos + object data-portlets + MenuDefinition data-portlets.data-personal + MenuDefinition data-portlets.data-namespaces + MenuDefinition data-portlets.data-variants + MenuDefinition data-portlets.data-views + MenuDefinition data-portlets.data-actions + object data-search-box. See SearchBox.mustache for documentation. + boolean sidebar-visible For users that want to see the sidebar on initial render, this should be + true. + string msg-vector-action-toggle-sidebar The label used by the sidebar button. + string msg-vector-main-menu-tooltip The title attribute for the main menu icon. + object data-portlets-sidebar. See Sidebar.mustache for documentation. + object data-footer for footer template partial. see Footer.mustache for documentation. +}} +