Polaris Astro documentation
Getting started
Install Polaris, run it on your computer and publish your travel website, step by step.
Thanks for choosing Polaris. This guide takes you from the downloaded zip to your own site running on your computer. You don’t need to be a developer: pages, trips, stays and destinations are plain text files.
Polaris is the theme edition. Visitors send you an enquiry and you reply. There are no payments and no online booking in this download. Online booking, payments and an admin area are a separate edition that is not included.
Requirements
- Node.js 22.12 or newer. Check your version by typing
node -vin a terminal. If you need to install or update it, download the LTS version from nodejs.org. - A code editor. VS Code is free and offers to install the Astro extension, which highlights mistakes as you type.
Install
- Unzip the download and move the
polaris-astrofolder wherever you keep your projects. - Open a terminal in that folder (in VS Code: Terminal → New Terminal) and install everything Polaris needs:
npm install
Preview your site
npm run dev
Open http://localhost:4321 in your browser. Keep it open while you edit: the page updates every time you save a file.
The demo photos can’t be included in the download. The first time you run it, Polaris draws placeholder images with the same file names, so every page works from the start. See Colours, fonts and photos to add your own.
The demo uses a fictional company. Replace its name, trips, stays and people with your own.
Make it yours
- Your business. Open
src/site.config.tsand change the name, tagline, currency, contact details, menus and footer. See Site settings. - Your enquiries. Choose how requests reach you: WhatsApp, email, Web3Forms or Formspree. See Enquiries.
- Your places. Edit the destinations in
src/content/destinations/. See Destinations. - Your trips and stays. Edit the files in
src/content/trips/andsrc/content/stays/. See Trips and Stays. - Your pages. Each page is a list of blocks. Copy any block from the block library into a page. See Pages and blocks.
- Your people and stories. Add guides, journal posts and guest reviews. See Journal, team and reviews.
- Your legal pages. Adapt
privacy.md,terms.mdandcancellation.mdinsrc/content/pages/to your business and country. They are templates, not legal advice. - Your demo bar. Set
demo.enabled: falseinsrc/site.config.ts. See Site settings. - Your domain. Set
siteinastro.config.mjsandurlinsrc/site.config.tsto your address, for examplehttps://yourtours.com.
Publish
npm run build
This creates a dist folder containing your finished website and its search index. Deploying shows how to put it online.
Commands
| Command | What it does |
|---|---|
npm install |
Installs what Polaris needs. Run it once, and again after updating. |
npm run dev |
Starts the live preview at localhost:4321. Search does not work here. |
npm run build |
Builds the finished site into dist/, then builds the search index. |
npm run preview |
Serves the built site so you can check it, including search, before publishing. |
npm run check |
Checks your content and code for mistakes. |
npm run palette |
Regenerates the colour scales from scripts/palette.mjs. |