Skip to content

Commit

Permalink
Added sitemap with robots.txt file. (#27)
Browse files Browse the repository at this point in the history
* Added sitemap with robots.txt file.

Added a simple sitemap with robots.txt file.

Resolves #2

* Update release-notes.mdx
  • Loading branch information
Bowens20832 committed May 18, 2023
1 parent 60b1974 commit 2dbbc60
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
5 changes: 5 additions & 0 deletions source/elegant/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_APP_URL,
generateRobotsTxt: true
};
49 changes: 46 additions & 3 deletions source/elegant/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion source/elegant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"export": "next build && next export",
"test": "jest --watch --verbose ./__tests__ ./src",
Expand All @@ -26,6 +27,7 @@
"elegant-cli": "^2.1.1",
"next": "^12.3.1",
"next-seo": "^6.0.0",
"next-sitemap": "^4.0.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2"
Expand Down Expand Up @@ -121,4 +123,4 @@
"unist-util-visit": "^2.0.3",
"zustand": "^4.0.0-rc.0"
}
}
}
1 change: 1 addition & 0 deletions source/elegant/src/pages/docs/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## v2.2-stable

- Added Storybook JS to Elegant to allow developers to build components in isolation. [#26](https://github.com/elegantframework/elegant-cli/issues/24)
- Added complete sitemaps with robots.txt. [#2](https://github.com/elegantframework/elegant-cli/issues/2)
- Introduced enhanced SEO items to the Elegant project, such as rich snippets.
- Created a core components namespace for simplified theming and extendability in future versions of Elegant.
- Improved favicons across all browsers.
Expand Down

0 comments on commit 2dbbc60

Please sign in to comment.