{"id":20852890,"url":"https://github.com/okturtles/shelterprotocol.net-old","last_synced_at":"2025-05-12T05:31:01.038Z","repository":{"id":176529187,"uuid":"657657800","full_name":"okTurtles/shelterprotocol.net-old","owner":"okTurtles","description":"Open protocol for creating end-to-end encrypted, federated, user-friendly web application","archived":false,"fork":false,"pushed_at":"2023-11-13T00:28:22.000Z","size":5941,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T00:51:12.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://shelterprotocol.net","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okTurtles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"okTurtles","custom":"https://okturtles.org/donate"}},"created_at":"2023-06-23T14:39:50.000Z","updated_at":"2023-11-10T16:56:25.000Z","dependencies_parsed_at":"2023-11-13T01:38:37.849Z","dependency_job_id":null,"html_url":"https://github.com/okTurtles/shelterprotocol.net-old","commit_stats":null,"previous_names":["okturtles/shelterprotocol.net","okturtles/shelterprotocol.net-old"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2Fshelterprotocol.net-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2Fshelterprotocol.net-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2Fshelterprotocol.net-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2Fshelterprotocol.net-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okTurtles","download_url":"https://codeload.github.com/okTurtles/shelterprotocol.net-old/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253681925,"owners_count":21946835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T03:19:11.658Z","updated_at":"2025-05-12T05:30:55.985Z","avatar_url":"https://github.com/okTurtles.png","language":"JavaScript","funding_links":["https://github.com/sponsors/okTurtles","https://okturtles.org/donate"],"categories":[],"sub_categories":[],"readme":"# Shelter Protocol Documentation\n\nWelcome to Shelter Protocol documentation website!\n\n## 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command                | Action                                           |\n| :--------------------- | :----------------------------------------------- |\n| `npm install`          | Installs dependencies                            |\n| `npm run dev`          | Starts local dev server at `localhost:3000`      |\n| `npm run build`        | Build your production site to `./dist/`          |\n| `npm run preview`      | Preview your build locally, before deploying     |\n| `npm run astro ...`    | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro --help` | Get help using the Astro CLI                     |\n\nTo deploy your site to production, check out our [Deploy an Astro Website](https://docs.astro.build/guides/deploy) guide.\n\n## 👀 Want to learn more?\n\nFeel free to check [Astro's documentation](https://docs.astro.build).\n\n## Customize This Theme\n\n### Site metadata\n\n`src/consts.ts` contains several data objects that describe metadata about your site like title, description, default language, and Open Graph details. You can customize these to match your project.\n\n### CSS styling\n\nThe theme's look and feel is controlled by a few key variables that you can customize yourself. You'll find them in the `src/styles/theme.css` CSS file.\n\nIf you've never worked with CSS variables before, give [MDN's guide on CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) a quick read.\n\nThis theme uses a \"cool blue\" accent color by default. To customize this for your project, change the `--theme-accent` variable to whatever color you'd like:\n\n```diff\n/* src/styles/theme.css */\n:root {\n  color-scheme: light;\n-  --theme-accent: hsla(var(--color-blue), 1);\n+  --theme-accent: hsla(var(--color-red), 1);   /* or: hsla(#FF0000, 1); */\n```\n\n## Page metadata\n\nAstro uses frontmatter in Markdown pages to choose layouts and pass properties to those layouts. If you are using the default layout, you can customize the page in many different ways to optimize SEO and other things. For example, you can use the `title` and `description` properties to set the document title, meta title, meta description, and Open Graph description.\n\n```markdown\n---\ntitle: Example title\ndescription: Really cool docs example that uses Astro\nlayout: ../../layouts/MainLayout.astro\n---\n\n# Page content...\n```\n\nFor more SEO related properties, look at `src/components/HeadSEO.astro`\n\n### Sidebar navigation\n\nThe sidebar navigation is controlled by the `SIDEBAR` variable in your `src/consts.ts` file. You can customize the sidebar by modifying this object. A default, starter navigation has already been created for you.\n\n```ts\nexport const SIDEBAR = {\n  en: {\n\t\t'Section Header': [\n\t\t\t{ text: 'Introduction', link: 'en/introduction' },\n\t\t\t{ text: 'Page 2', link: 'en/page-2' },\n\t\t\t{ text: 'Page 3', link: 'en/page-3' },\n\t\t],\n\t\t'Another Section': [{ text: 'Page 4', link: 'en/page-4' }],\n\t},\n};\n```\n\nNote the top-level `en` key: This is needed for multi-language support. You can change it to whatever language you'd like, or add new languages as you go. More details on this below.\n\n### Multiple Languages support\n\nThe Astro docs template supports multiple languages out of the box. The default theme only shows `en` documentation, but you can enable multi-language support features by adding a second language to your project.\n\nTo add a new language to your project, you'll want to extend the current `src/content/docs/[lang]/...` layout:\n\n```diff\n 📂 src/content/docs\n ┣ 📂 en\n ┃ ┣ 📜 page-1.md\n ┃ ┣ 📜 page-2.md\n ┃ ┣ 📜 page-3.astro\n+ ┣ 📂 es\n+ ┃ ┣ 📜 page-1.md\n+ ┃ ┣ 📜 page-2.md\n+ ┃ ┣ 📜 page-3.astro\n```\n\nYou'll also need to add the new language name to the `KNOWN_LANGUAGES` map in your `src/consts.ts` file. This will enable your new language switcher in the site header.\n\n```diff\n// src/consts.ts\nexport const KNOWN_LANGUAGES = {\n  English: 'en',\n+  Spanish: 'es',\n};\n```\n\nLast step: you'll need to add a new entry to your sidebar, to create the table of contents for that language. While duplicating every page might not sound ideal to everyone, this extra control allows you to create entirely custom content for every language.\n\n\u003e Make sure the sidebar `link` value points to the correct language!\n\n```diff\n// src/consts.ts\nexport const SIDEBAR = {\n  en: {\n\t\t'Section Header': [\n\t\t\t{ text: 'Introduction', link: 'en/introduction' },\n      // ...\n\t\t],\n\t\t// ...\n\t},,\n+  es: {\n+\t\t'Encabezado de sección': [\n+\t\t\t{ text: 'Introducción', link: 'en/introduction' },\n+     // ...\n+\t\t],\n+   // ...\n+  },\n};\n\n// ...\n```\n\nIf you plan to use Spanish as the default language, you just need to modify the redirect path in `src/pages/index.astro`:\n\n```diff\n\u003cscript\u003e\n- window.location.pathname = `/en/introduction`;\n+ window.location.pathname = `/es/introduction`;\n\u003c/script\u003e\n```\n\nYou can also remove the above script and write a landing page in Spanish instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokturtles%2Fshelterprotocol.net-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokturtles%2Fshelterprotocol.net-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokturtles%2Fshelterprotocol.net-old/lists"}