Skip to main content

TEMPLATE_VERSION_INDEX

Constant TEMPLATE_VERSION_INDEX 

Source
pub const TEMPLATE_VERSION_INDEX: &str = "<!doctype html>\n<html lang=\"{{lang|default(value=\'en\')}}\">\n    <head>\n        <meta charset=\"utf-8\" />\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n        <title>{{ project_name }} \u{2014} {{ version }}</title>\n        <style>\n            *,\n            *::before,\n            *::after {\n                box-sizing: border-box;\n                margin: 0;\n                padding: 0;\n            }\n            body {\n                font-family:\n                    system-ui,\n                    -apple-system,\n                    BlinkMacSystemFont,\n                    \"Segoe UI\",\n                    sans-serif;\n                color: #2e2416;\n                background: #f5efe4;\n                line-height: 1.6;\n            }\n            /* \u{2500}\u{2500} Header \u{2500}\u{2500} */\n            header {\n                background: #3d5732;\n                color: #f0e8d8;\n                padding: 0.75rem 1.5rem;\n                display: flex;\n                align-items: center;\n                gap: 1.5rem;\n            }\n            header a {\n                color: #c8bbaa;\n                text-decoration: none;\n                font-size: 0.9rem;\n            }\n            header a:hover {\n                text-decoration: underline;\n                color: #f0e8d8;\n            }\n            header .title {\n                font-weight: 600;\n                font-size: 1rem;\n            }\n            /* \u{2500}\u{2500} Layout \u{2500}\u{2500} */\n            .layout {\n                display: flex;\n                min-height: calc(100vh - 44px);\n            }\n            /* \u{2500}\u{2500} Sidebar \u{2500}\u{2500} */\n            aside {\n                width: 230px;\n                flex-shrink: 0;\n                background: #ede5d8;\n                border-right: 1px solid #c9baa8;\n                padding: 1.5rem 1rem;\n                font-size: 0.875rem;\n            }\n            aside h3 {\n                font-size: 0.65rem;\n                font-weight: 700;\n                text-transform: uppercase;\n                letter-spacing: 0.12em;\n                color: #7a6855;\n                margin-top: 1.5rem;\n                margin-bottom: 0.5rem;\n            }\n            aside h3:first-child {\n                margin-top: 0;\n            }\n            aside ul {\n                list-style: none;\n            }\n            aside li {\n                padding: 0.25rem 0;\n            }\n            aside a {\n                color: #7a4429;\n                text-decoration: none;\n            }\n            aside a:hover {\n                text-decoration: underline;\n                color: #a05a3a;\n            }\n            /* \u{2500}\u{2500} Main content \u{2500}\u{2500} */\n            main {\n                flex: 1;\n                padding: 2rem 2.5rem;\n                max-width: 860px;\n                overflow-x: hidden;\n                background: #fdfaf5;\n            }\n            /* \u{2500}\u{2500} Markdown typography \u{2500}\u{2500} */\n            main h1,\n            main h2,\n            main h3,\n            main h4,\n            main h5,\n            main h6 {\n                margin-top: 1.5em;\n                margin-bottom: 0.5em;\n                line-height: 1.3;\n                color: #2e2416;\n            }\n            main h1 {\n                font-size: 1.9rem;\n                border-bottom: 2px solid #c9baa8;\n                padding-bottom: 0.4rem;\n            }\n            main h2 {\n                font-size: 1.4rem;\n                border-bottom: 1px solid #ddd4c4;\n                padding-bottom: 0.3rem;\n            }\n            main h3 {\n                font-size: 1.15rem;\n            }\n            main p {\n                margin-bottom: 1em;\n            }\n            main a {\n                color: #7a4429;\n            }\n            main a:hover {\n                color: #a05a3a;\n            }\n            main img {\n                max-width: 100%;\n                height: auto;\n            }\n            main pre {\n                background: #eae2d4;\n                border: 1px solid #c9baa8;\n                border-radius: 5px;\n                padding: 1em 1.25em;\n                overflow-x: auto;\n                margin-bottom: 1em;\n                font-size: 0.875em;\n            }\n            main code {\n                font-family:\n                    \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo,\n                    monospace;\n                background: #eae2d4;\n                padding: 0.15em 0.4em;\n                border-radius: 3px;\n                font-size: 0.875em;\n            }\n            main pre code {\n                background: none;\n                padding: 0;\n                font-size: inherit;\n            }\n            main ul,\n            main ol {\n                padding-left: 1.5em;\n                margin-bottom: 1em;\n            }\n            main li {\n                margin-bottom: 0.2em;\n            }\n            main table {\n                border-collapse: collapse;\n                margin-bottom: 1em;\n                width: 100%;\n            }\n            main th,\n            main td {\n                border: 1px solid #c9baa8;\n                padding: 0.4em 0.75em;\n                text-align: left;\n            }\n            main th {\n                background: #ede5d8;\n                font-weight: 600;\n            }\n            main blockquote {\n                border-left: 4px solid #c9baa8;\n                padding: 0.5em 1em;\n                margin: 0 0 1em;\n                color: #7a6855;\n                font-style: italic;\n            }\n            /* \u{2500}\u{2500} Dist file metadata \u{2500}\u{2500} */\n            .dist-meta {\n                font-size: 0.75rem;\n                color: #7a6855;\n                margin-top: 0.15rem;\n                word-break: break-all;\n            }\n            .dist-meta code {\n                font-family:\n                    \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo,\n                    monospace;\n                font-size: 0.7rem;\n            }\n            /* \u{2500}\u{2500} Changelog section \u{2500}\u{2500} */\n            .changelog-divider {\n                border: none;\n                border-top: 2px solid #c9baa8;\n                margin: 2.5rem 0;\n            }\n            .changelog-heading {\n                font-size: 1.3rem;\n                font-weight: 600;\n                color: #5a4030;\n                margin-bottom: 1rem;\n            }\n            /* \u{2500}\u{2500} Responsive \u{2500}\u{2500} */\n            @media (max-width: 640px) {\n                .layout {\n                    flex-direction: column;\n                }\n                aside {\n                    width: 100%;\n                    border-right: none;\n                    border-bottom: 1px solid #c9baa8;\n                }\n            }\n        </style>\n    </head>\n    <body>\n        <header>\n            <a href=\"../\">\u{2190} All versions</a>\n            <span class=\"title\">{{ project_name }} \u{2014} {{ version }}</span>\n        </header>\n        <div class=\"layout\">\n            <aside>\n                {% if repo_url %}\n                <h3>Repository</h3>\n                <p><a href=\"{{ repo_url }}\">{{ repo_url }}</a></p>\n                {% endif %} {% if has_docs %}\n                <h3>Documentation</h3>\n                <ul>\n                    <li><a href=\"docs/\">\u{1f4d6} API docs</a></li>\n                    {% if has_docs_tarball %}\n                    <li><a href=\"docs.tar.gz\">\u{2b07} docs.tar.gz</a></li>\n                    {% endif %}\n                </ul>\n                {% endif %} {% if has_dist %}\n                <h3>Downloads</h3>\n                <ul>\n                    {% for file in dist_files %}\n                    <li>\n                        <a href=\"dist/{{ file.name }}\">\u{2b07} {{ file.name }}</a>\n                        <div class=\"dist-meta\">\n                            {{ file.size_human }}<br /><code title=\"SHA-256\"\n                                >sha256: {{ file.sha256 }}</code\n                            >\n                        </div>\n                    </li>\n                    {% endfor %}\n                </ul>\n                {% endif %}\n            </aside>\n            <main>\n                {{ readme_html | safe }} {% if changelog_html %}\n                <hr class=\"changelog-divider\" />\n                <h2 class=\"changelog-heading\">Changes in {{ version }}</h2>\n                {{ changelog_html | safe }} {% endif %}\n            </main>\n        </div>\n    </body>\n</html>\n";