|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to you under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +site: |
| 19 | + title: Apache log4net |
| 20 | + url: "https://logging.apache.org/log4net" |
| 21 | + start_page: "ROOT::index.adoc" |
| 22 | + |
| 23 | +content: |
| 24 | + sources: |
| 25 | + - url: . |
| 26 | + branches: HEAD |
| 27 | + start_paths: |
| 28 | + - target/generated-site/antora |
| 29 | + edit_url: |
| 30 | + |
| 31 | +runtime: |
| 32 | + log: |
| 33 | + # Fail on warnings |
| 34 | + failure_level: warn |
| 35 | + |
| 36 | +asciidoc: |
| 37 | + extensions: |
| 38 | + - "@asciidoctor/tabs" |
| 39 | + |
| 40 | +ui: |
| 41 | + |
| 42 | + bundle: |
| 43 | + url: "https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable" |
| 44 | + snapshot: true |
| 45 | + |
| 46 | + # Template files: https://github.com/asciidoctor/asciidoctor-docs-ui/blob/main/src |
| 47 | + # Template variables: https://docs.antora.org/antora-ui-default/templates |
| 48 | + supplemental_files: |
| 49 | + |
| 50 | + # Add `@asciidoctor/tabs` extension styles |
| 51 | + - path: css/vendor/tabs.css |
| 52 | + contents: ./node_modules/@asciidoctor/tabs/dist/css/tabs.css |
| 53 | + |
| 54 | + # Add `@asciidoctor/tabs` extension scripts |
| 55 | + - path: js/vendor/tabs.js |
| 56 | + contents: ./node_modules/@asciidoctor/tabs/dist/js/tabs.js |
| 57 | + |
| 58 | + - path: partials/footer-scripts.hbs |
| 59 | + contents: | |
| 60 | + <script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}"></script> |
| 61 | + <script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script> |
| 62 | + <!-- `@asciidoctor/tabs` extension scripts --> |
| 63 | + <script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script> |
| 64 | + {{#if env.SITE_SEARCH_PROVIDER}} |
| 65 | + {{> search-scripts}} |
| 66 | + {{/if}} |
| 67 | +
|
| 68 | + - path: partials/head-styles.hbs |
| 69 | + contents: | |
| 70 | + <link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css"> |
| 71 | + <link rel="icon" href="{{{uiRootPath}}}/../_images/favicon.ico" type="image/x-icon"> |
| 72 | + <!-- `@asciidoctor/tabs` extension styles --> |
| 73 | + <link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css"> |
| 74 | + <style> |
| 75 | + /* Swap colors of `IMPORTANT` and `WARNING` blocks */ |
| 76 | + .doc .admonitionblock.important .icon { background-color: #f70; } |
| 77 | + .doc .admonitionblock.warning .icon { background-color: #e40046; } |
| 78 | + /* Default `h4`, `h5`, and `h6` are smaller than the normal text, fix header font sizing: */ |
| 79 | + .doc h1 { font-size: 1.9rem; } |
| 80 | + .doc h2 { font-size: 1.7rem; } |
| 81 | + .doc h3 { font-size: 1.5rem; font-weight: 400; } |
| 82 | + .doc h4 { font-size: 1.3rem; font-weight: 500; } |
| 83 | + .doc h5 { font-size: 1.1rem; font-weight: 500; text-decoration: underline; } |
| 84 | + .doc h6 { font-size: 0.9rem; font-weight: 500; text-decoration: underline; } |
| 85 | + /* Default `code`, `pre`, and `.colist` (source code annotations) fonts are too big, adjust them: */ |
| 86 | + .doc .colist>table code, .doc p code, .doc thead code { font-size: 0.8em; } |
| 87 | + .doc pre { font-size: 0.7rem; } |
| 88 | + .doc .colist { font-size: 0.75rem; } |
| 89 | + /* Make links more visible: */ |
| 90 | + .doc a { text-decoration: underline; } |
| 91 | + .doc a code { text-decoration: underline; color: #1565c0; } |
| 92 | + /* Tab header fonts aren't rendered good, adjusting the font weight: */ |
| 93 | + .tablist > ul li { font-weight: 500; } |
| 94 | + /* `page-toclevels` greater than 4 are not supported by Antora UI, patching it: */ |
| 95 | + .toc .toc-menu li[data-level="4"] a { |
| 96 | + padding-left: 2.75rem; |
| 97 | + } |
| 98 | + /* Replace the default highlight.js color for strings from red (unnecessarily signaling something negative) to green: */ |
| 99 | + .hljs-string { |
| 100 | + color: #0f8532; |
| 101 | + } |
| 102 | + </style> |
| 103 | +
|
| 104 | + - path: partials/header-content.hbs |
| 105 | + contents: | |
| 106 | + <header class="header"> |
| 107 | + <nav class="navbar"> |
| 108 | + <div class="navbar-brand"> |
| 109 | + <span class="navbar-item title">{{site.title}}</span> |
| 110 | + </div> |
| 111 | + <div id="topbar-nav" class="navbar-menu"> |
| 112 | + <div class="navbar-end"> |
| 113 | + <a class="navbar-item" href="https://logging.apache.org">a subproject of <strong>Apache Logging Services</strong></a> |
| 114 | + </div> |
| 115 | + </div> |
| 116 | + </nav> |
| 117 | + </header> |
| 118 | +
|
| 119 | + - path: partials/footer-content.hbs |
| 120 | + contents: | |
| 121 | + <footer class="footer"> |
| 122 | + <p> |
| 123 | + Copyright © 1999-{{{year}}} <a href="https://www.apache.org/">The Apache Software Foundation</a>. |
| 124 | + Licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache Software License, Version 2.0</a>. |
| 125 | + Please read our <a href="https://privacy.apache.org/policies/privacy-policy-public.html">privacy policy</a>. |
| 126 | + </p> |
| 127 | + <p> |
| 128 | + Apache, Log4j, and the Apache feather logo are trademarks or registered trademarks of The Apache Software Foundation. |
| 129 | + Oracle and Java are registered trademarks of Oracle and/or its affiliates. |
| 130 | + Other names may be trademarks of their respective owners. |
| 131 | + </p> |
| 132 | + </footer> |
| 133 | +
|
| 134 | + # Disable component version selector |
| 135 | + - path: partials/nav-explore.hbs |
| 136 | + contents: "" |
| 137 | + |
| 138 | + # Fix the `Edit this page` link |
| 139 | + - path: partials/edit-this-page.hbs |
| 140 | + contents: | |
| 141 | + <div class="edit-this-page"><a href="https://github.com/apache/logging-log4net/edit/Feature/Antora/src/site/antora/modules/{{page.module}}/pages/{{page.relativeSrcPath}}">Edit this Page</a></div> |
0 commit comments