Skip to content

Set up a static site#24

Merged
koppen merged 8 commits intomainfrom
deploy_site
Aug 19, 2025
Merged

Set up a static site#24
koppen merged 8 commits intomainfrom
deploy_site

Conversation

@koppen
Copy link
Copy Markdown
Member

@koppen koppen commented Aug 19, 2025

Let's use our demo application as our documentation website, seeing how we've already got lookbook running there.

The demo site is a full Rails application, so we can use Parklife to generate a static site which can be deployed to GitHub pages 🤞

koppen added 7 commits August 19, 2025 08:51
We need this for Flowbite
Since we build the site in production mode and our form-inputs expects
model tables to be created, we need a database in production.
We continously run into a

> Information for cause: Propshaft::MissingAssetError (The asset
> 'tailwind.css' was not found in the load path.):

but only the first time we build the site in the same directory.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR sets up a static site generation capability for the demo application to serve as documentation, using Parklife to convert the Rails demo app into a static site deployable to GitHub Pages.

  • Moved Lookbook from development-only to all environments to make it available in production
  • Added GitHub Actions workflow configuration for static site deployment
  • Created a preview layout template for component demonstrations

Reviewed Changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
demo/config/routes.rb Changed Lookbook mounting from development-only to available when gem is defined
demo/config/initializers/lookbook.rb Added Lookbook configuration for preview layout
demo/config/database.yml Updated production database path and removed extra whitespace
demo/app/views/layouts/preview.html.erb Added new layout template for component previews
demo/Gemfile Moved Lookbook from development group to production dependencies
.github/workflows/parklife.yml Added Node.js setup and npm install step for static site generation
Files not reviewed (1)
  • demo/package-lock.json: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@koppen koppen merged commit bff03b4 into main Aug 19, 2025
7 checks passed
@koppen koppen deleted the deploy_site branch August 19, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants