open-index/open-npm huggingface dataset:
npm package: @lameuler/atlas
Description: Astro documentation theme for ler.quest
Author: Lam Eu Ler
Latest version: 2.2.2

# @lameuler/atlas

Astro documentation theme for [ler.quest](https://ler.quest). This is not currently customizable to be used by any other site.

## Example

Refer to the [demo](./demo) project

```js
// astro.config.mjs
import atlas from '@lameuler/atlas'
import { defineConfig } from 'astro/config'

// https://astro.build/config
export default defineConfig({
    site: 'https://ler.quest',
    base: '/atlas', // required
    integrations: [
        atlas({
            name: 'Atlas',
            github: 'atlas',
            sidebar: [
                {
                    // specify sidebar groups with pages
                    name: 'Guides',
                    pages: [
                        '/',
                        'configuration',
                        'troubleshooting',
                        'markdown',
                        'typebox',
                        'https://ler.quest/astro-pdf',
                        {
                            label: 'View on GitHub',
                            page: 'https://github.com/lameuler/astro-pdf',
                        },
                    ],
                },
            ],
        }),
    ],
})
```

```ts
// src/content.config.ts
import { docsLoader } from '@lameuler/atlas/content'
import { defineCollection } from 'astro:content'

export const collections = {
    docs: defineCollection({
        loader: docsLoader({ base: 'src/content' }),
    }),
}
```

Remove the src/pages directory and put all pages in the content collection.
npm package: @lameuler/ler-astro
Description: Astro components I use across some of my personal projects and sites.
Author: Lam Eu Ler
Latest version: 2.5.1

# ler-astro

Astro components I use across some of my personal projects and sites.

These components are not intended to be used elsewhere, but anyway here's a proper README for my future self and anyone else who sees this.

## Installation

To install the components, run
```sh
npm install @lameuler/ler-astro
```

You will need to set the default text color with the CSS variable `--text`.
```css
html {
	--text: 0, 0, 0;
}
html.dark {
	--text: 255, 255, 255;
}
```

Then, you can import and use the components:
```ts
import { Header, Footer, ThemeSwitch, Head, HeadImgLinks, Year } from '@lameuler/ler-astro'
```

For the icons to display properly, you will also need to import `icon.css`. Note that this will apply styles to all `svg`s with the class `icon`.
```ts
import '@lameuler/ler-astro/icon.css'
```