https://github.com/smarterlabs/dorian
https://github.com/smarterlabs/dorian
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smarterlabs/dorian
- Owner: smarterlabs
- License: other
- Created: 2020-09-13T01:01:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-15T16:02:21.000Z (about 3 years ago)
- Last Synced: 2024-12-22T09:11:12.966Z (6 months ago)
- Language: JavaScript
- Homepage: dorian.vercel.app
- Size: 1.9 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project Dorian
Dorian is a static site generator that converts a website into a static site by scraping any content found from the origin. Postprocessing is done to perform optimizations on the downloaded content.
## Usage
Make sure you have 2 environment variables set:
- `URL`: The destination URL
- `WEBFLOW_URL`: The original source URL to be scrapedTo do this, you can create a `.env` file with the contents of `.env.template`. and fill in the variables.
Then run:
```bash
yarn build
```It should output the files to the `public` folder in the project root. You can test the site out locally by running:
```bash
yarn serve
```# Excluding pages from the sitemap
In Webflow, add this custom attribute to the "body" tag of the page you want to exclude from the sitemap:
Name: `sitemap`
Value: `no`