Delete what you don't need
An important part of making sustainable products is avoiding making things you don’t need, and that’s no different for websites. With that in mind Net0.1 is set up for you to be able to remove parts which you don’t need, and keep what is most important to you.
Removing docs
To remove the docs functionality there are a few steps:
- Remove the docs content folder at
src/content/docs
- Remove the docs styles at
src/styles/docs.css
- Remove the docs config in
astro.config.mjs
, removing the entirestarlight
integration - Uninstall the dependencies with
npm uninstall @astrojs/starlight
Removing the blog
- Remove the blog content folder at
src/content/blog
- Remove the blog page folders at
src/pages/blog
,src/pages/[lang]/blog
andsrc/pages/es/blog
- Remove the RSS feed by removing the
src/pages/feeds
folder and uninstalling the dependencynpm uninstall @astrojs/rss
- NOTE: Feel free to keep and modify the RSS setup if it’s useful for you for other content
Removing custom components & pages
Included in the starter kit are a few basic astro components & pages already set up, but it’s likely you’ll want to make your own. Feel free to remove them and start from scratch.
- Remove all the content in
src/components
- Remove the custom pages at
src/pages/resources
&src/pages/index.astro
Removing Pico.css
If you want to use other styles (be it a framework or writing your own) then it makes sense to remove Pico.css and the custom styles for Net0.
- Uninstall pico.css with
npm uninstall @picocss/pico
- Remove the
import
statement in the main layout file atsrc/layouts/Layout.astro
- Remove docs css which extends Pico.css:
- Remove the
src/style/docs.css
file - Remove / replace the starlight
customCss
setting in theastro.config.mjs
file
- Remove the
Removing i18n
If your website / product is only going to be available in one language you will not need the translation & internationalization functionality that is included out of the box.
- Remove non-default language content folders at
src/content/blog/es
- Remove non-default language page folders at
src/pages/[lang]
andsrc/pages/es
- The i18n related functionality in
src/i18n
can also be removed, but doing so will break various components and pages which use the helper functions.