Add lookbook docs in docker

This commit is contained in:
Oliver Günther
2023-08-07 13:36:16 +02:00
parent 0c859417f1
commit cc47486c56
93 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ OpenProject::Application.configure do
config.lookbook.project_name = "OpenProject Lookbook"
config.lookbook.project_logo = Rails.root.join('app/assets/images/icon_logo_white.svg').read
config.lookbook.ui_favicon = Rails.root.join('app/assets/images/icon_logo.svg').read
config.lookbook.page_paths = [Rails.root.join("spec/components/docs/").to_s]
config.lookbook.page_paths = [Rails.root.join("lookbook/docs").to_s]
config.lookbook.component_paths << Primer::ViewComponents::Engine.root.join('app/components').to_s
config.view_component.preview_paths += [
Rails.root.join("spec/components/previews").to_s,
Rails.root.join("lookbook/previews").to_s,
Primer::ViewComponents::Engine.root.join('previews').to_s
]
+1
View File
@@ -54,6 +54,7 @@ COPY lib_static ./lib_static
COPY frontend ./frontend
COPY modules ./modules
COPY vendor ./vendor
COPY lookbook ./lookbook
RUN --mount=type=cache,target=/app/frontend/.angular/cache,uid=1000,gid=1000 \
SECRET_KEY_BASE=1 RAILS_ENV=production DATABASE_URL=nulldb://db \