Skip to content

Commit

Permalink
Merge pull request #47 from kilbergr/rek-docs-page
Browse files Browse the repository at this point in the history
docs page
  • Loading branch information
kilbergr authored Feb 1, 2024
2 parents e34440a + 1d15a07 commit d182757
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/data/docsSidebarLinks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const anchorLinks = [
{
title: "Accessing Data",
url: "#accessing-data",
},
{
title: "Bulk Downloads",
url: "#bulk-downloads",
},
];
22 changes: 22 additions & 0 deletions src/docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<title>Documentation | Caselaw Access Project</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex" />
<meta name="author" content="Your name" />
<meta name="description" content="Explore American Caselaw" />
<meta property="og:title" content="Caselaw Access Project" />
<meta property="og:description" content="Explore American Caselaw" />
<meta property="og:url" content="https://case.law/" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="Caselaw Access Projects" />

<link href="/css/global.css" rel="stylesheet" />
<script type="module" src="/templates/cap-docs-page.js"></script>
</head>
<body>
<cap-docs-page></cap-docs-page>
</body>
</html>
46 changes: 46 additions & 0 deletions src/templates/cap-docs-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { LitElement, html } from "../lib/lit.js";
import "../components/cap-nav.js";
import "../components/cap-page-header.js";
import "../components/cap-footer.js";
import "../components/cap-anchor-list.js";
import { anchorLinks } from "../data/docsSidebarLinks.js";

export class CapDocsPage extends LitElement {
// Turn Shadow DOM off
// Generally discouraged: https://lit.dev/docs/components/shadow-dom/#implementing-createrenderroot
createRenderRoot() {
return this;
}

render() {
return html`
<cap-nav></cap-nav>
<main id="main" class="l-interiorPage">
<header class="u-bg-gray-500 u-col-span-full">
<cap-page-header heading="Documentation">
<p class="u-text-white u-text-serif">
Welcome to the Caselaw Access Project Documentation. Here you'll
find some documentation about our project, organization, data, and
site.
</p>
</cap-page-header>
</header>
<aside class="u-sm-hidden">
<cap-anchor-list .data=${anchorLinks}></cap-anchor-list>
</aside>
<article class="c-article u-bg-beige">
<h2 class="c-decoratedHeader" id="accessing-data">Accessing Data</h2>
<p>
[We will put some documentation content about accessing data here.]
</p>
<h2 class="c-decoratedHeader" id="bulk-downloads">Bulk Downloads</h2>
<p>
[We will put some documentation content about bulk downloads here.]
</p>
</article>
</main>
<cap-footer></cap-footer>
`;
}
}
customElements.define("cap-docs-page", CapDocsPage);

0 comments on commit d182757

Please sign in to comment.