Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-18001 site: move sitemap to separate page #4103

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/site/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
/assets/json
/assets/vendor
/sitemap.xml
/sitemap.md


5 changes: 2 additions & 3 deletions docs/site/_layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@
<link rel="stylesheet" href="/assets/css/page.css" />
</head>

<body>
<body class="page">
<!-- <h1>{{ page.title }}</h1> -->
<header>
<header class="pageheader">
<div class="navparent">
<div id="nav" class="nav">
<!-- Vue mount here -->
</div>
</div>
<div class="message"><i>This navigation UI is temporary, just to give access to the pages.</i></div>
<!-- <div class="bar"><a href="/sitemap" class="bar">Site Map</a></div> -->
</header>


Expand Down
40 changes: 40 additions & 0 deletions docs/site/_layouts/sitemap.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!doctype html>
<html>

<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="/assets/css/reports-v2.css" />
<link rel="stylesheet" href="/assets/css/page.css" />
</head>

<body class="sitemappage">
<!-- <h1>{{ page.title }}</h1> -->
<header>
<div class="navparent">
<div id="nav" class="nav">
<!-- Vue mount here for normal navigation -->
</div>
</div>
<div class="message"><i>This navigation UI is temporary, just to give access to the pages.</i></div>
<!-- <div class="bar"><a href="/sitemap" class="bar">Site Map</a></div> -->
</header>

<section class="body">
{{ content }}
</section>

<div id="sitemap">
<!-- sitemap goes here-->
</div>

<footer>
© 1991-2024 Unicode, Inc. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. See <a href="https://www.unicode.org/copyright.html">Terms of Use</a>.
</footer>
<!-- workaround for cloudflare content-type issue -->
<script src="/assets/vendor/vue.global.prod.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/5.0.0/anchor.min.js" integrity="sha512-byAcNWVEzFfu+tZItctr+WIMUJvpzT2kokkqcBq+VsrM3OrC5Aj9E2gh+hHpU0XNA3wDmX4sDbV5/nkhvTrj4w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="/assets/js/cldrsite.js"></script>
</body>

</html>
45 changes: 37 additions & 8 deletions docs/site/assets/css/page.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
/* mirror of div.body */
section.body {
body.page section.body {
margin: 3em;
}

/* If there is any content on the sitemap.md page, left indent it to fit with the rest,
but don't create a big space for it. */
body.sitemappage section.body {
margin-left: 3em;
}

body.page header .subpages a:link {
text-decoration: none;
}
body.page header .subpages a:visited {
text-decoration: none;
}
body.page header .subpages a:hover {
text-decoration: underline;
}

header {
width: "100%";
background-color: #5555ff;
Expand Down Expand Up @@ -40,19 +56,28 @@ header .nav a.uplink {
color: white;
}

div.showmap {
body.page a.showmap {
color: white;
text-decoration: none;
}

body.sitemappage a.showmap,
body.sitemappage a.showmap:visited {
color: lightgray;
text-decoration: none;
}

.showmap {
position: absolute;
right: 1em;
color: white;
}

div.showmap:hover {
body.page a.showmap:hover {
text-decoration: underline;
color: white;
}

header .nav div.subpages,
div.sitemap {
header .nav div.subpages {
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
background-color: white;
Expand All @@ -61,14 +86,17 @@ div.sitemap {
padding: 0.5em;
}

div.sitemap {
padding: 1em;
}

div.submap {
margin-left: 1em;
border-left: 1px solid gray;
padding-left: 0.5em;
}

div.subpages > .hamburger,
div.sitemap .hamburger {
div.subpages > .hamburger {
position: absolute;
right: 1em;
top: 1em;
Expand All @@ -86,6 +114,7 @@ div.sitemap > div.submap {

.subpages .hamburger:hover {
color: gray;
text-shadow: 1px 1px 3px gray;
}

header .nav ul b {
Expand Down
Loading
Loading