♻️ Restructure: Move Astro to repository root
BREAKING CHANGE: Astro project is now at repository root - Removed dealplustech-astro subdirectory - Moved all Astro files to root - Updated PostCSS config to .cjs - Removed old Next.js files ✅ 11 pages built successfully ✅ Cookie consent banner included ✅ Privacy/Terms links in footer ✅ Ready for Easypanel deployment (no root dir needed) Migration path: - Old structure: /dealplustech-astro/ - New structure: / (root)
This commit is contained in:
75
dealplustech-astro/node_modules/github-slugger/README.md
generated
vendored
75
dealplustech-astro/node_modules/github-slugger/README.md
generated
vendored
@@ -1,75 +0,0 @@
|
||||
# github-slugger
|
||||
|
||||
[![npm][npm-image]][npm-url]
|
||||
[![Build][build-badge]][build]
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/github-slugger.svg?style=flat-square
|
||||
[npm-url]: https://www.npmjs.com/package/github-slugger
|
||||
[build-badge]: https://github.com/Flet/github-slugger/workflows/main/badge.svg
|
||||
[build]: https://github.com/Flet/github-slugger/actions
|
||||
|
||||
Generate a slug just like GitHub does for markdown headings. It also ensures slugs are unique in the same way GitHub does it. The overall goal of this package is to emulate the way GitHub handles generating markdown heading anchors as close as possible.
|
||||
|
||||
This project is not a markdown or HTML parser: passing `alpha *bravo* charlie`
|
||||
or `alpha <em>bravo</em> charlie` doesn’t work.
|
||||
Instead pass the plain text value of the heading: `alpha bravo charlie`.
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
npm install github-slugger
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import GithubSlugger from 'github-slugger'
|
||||
|
||||
const slugger = new GithubSlugger()
|
||||
|
||||
slugger.slug('foo')
|
||||
// returns 'foo'
|
||||
|
||||
slugger.slug('foo')
|
||||
// returns 'foo-1'
|
||||
|
||||
slugger.slug('bar')
|
||||
// returns 'bar'
|
||||
|
||||
slugger.slug('foo')
|
||||
// returns 'foo-2'
|
||||
|
||||
slugger.slug('Привет non-latin 你好')
|
||||
// returns 'привет-non-latin-你好'
|
||||
|
||||
slugger.slug('😄 emoji')
|
||||
// returns '-emoji'
|
||||
|
||||
slugger.reset()
|
||||
|
||||
slugger.slug('foo')
|
||||
// returns 'foo'
|
||||
```
|
||||
|
||||
Check [`test/fixtures.json`](test/fixtures.json) for more examples.
|
||||
|
||||
If you need, you can also use the underlying implementation which does not keep
|
||||
track of the previously slugged strings (not recommended):
|
||||
|
||||
```js
|
||||
import GithubSlugger, {slug} from 'github-slugger'
|
||||
|
||||
slug('foo bar baz')
|
||||
// returns 'foo-bar-baz'
|
||||
|
||||
slug('foo bar baz')
|
||||
// returns the same slug 'foo-bar-baz' because it does not keep track
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.
|
||||
|
||||
## License
|
||||
|
||||
[ISC](LICENSE)
|
||||
Reference in New Issue
Block a user