Skip to content

πŸ§‘β€πŸ’» Source code for the developers section of Interledger.org

Notifications You must be signed in to change notification settings

devcer/interledger.org-developers

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Interledger developer portal

Source code for the /developer-tools portion of Interledger.org. This site is separate from the headless Drupal-powered main site and is built with Starlight, a documentation framework powered by Astro.

πŸš€ Project Structure

Inside this project, you'll see the following folders and files:

.
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ content/
β”‚   β”‚   β”œβ”€β”€ docs/
β”‚   β”‚   └── config.ts
β”‚   β”œβ”€β”€ overrides/
β”‚   β”œβ”€β”€ styles/
β”‚   └── env.d.ts
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ package.json
└── tsconfig.json

Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.

Static assets, like favicons or images, can be placed in the public/ directory.

The key component for this site is the Spec component (found in the components/ directory), which is how we pull the specification content directly from https://github.com/interledger/rfcs.

Overrides are done using a custom plugin (source: https://gist.github.com/giuseppelt/7f918a3ac02a011d76811ae472f8bf09) until the Starlight maintainers are able to get to withastro/starlight#415. We are currently overriding the default Starlight header to match the main site header.

Local Development

We are using Bun in this repository, but you could theoretically use the package manager of your choice. To install Bun, run

curl -fsSL https://bun.sh/install | bash

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
bun install Installs dependencies
bun run start Starts local dev server at localhost:1103
bun run build Build your production site to ./dist/
bun run preview Preview your build locally, before deploying
bun run astro ... Run CLI commands like astro add, astro check
bun run astro -- --help Get help using the Astro CLI

You can substitute the bun commands with whatever package manager of your choice uses.

πŸ‘€ Want to learn more?

Check out Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.

About

πŸ§‘β€πŸ’» Source code for the developers section of Interledger.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Astro 55.8%
  • MDX 16.0%
  • JavaScript 13.9%
  • CSS 13.7%
  • TypeScript 0.6%