Skip to content

Conversation

@Thenlie
Copy link
Contributor

@Thenlie Thenlie commented Aug 16, 2025

Description

When working on autocat3 locally, I have a number of un-staged changes to get the site to load similarly to dev. These include css and image files, as well as changes to the postgres setup. This PR attempts to streamline that workflow a bit. It does this by setting up environment variables which can then be used to dynamically change different parts of the application.

Additional ideas

The biggest issue IMO is that the CSS/Images are not linked between gutenbergsite and autocat3. This decoupling makes it very difficult to validate changes that are made across both repositories. I am assuming there is a good reason for this decoupling (though it is worth re-considering this as I don't know what that reason is). But, based on the assumption they need to be separate, we can still make some improvements.

We could use git submodule to link the gutenbergsite/gutenberg to the autocat3 static directory. This will allow devs to pull down recent gutenbergsite changes to autocat3. The static directory can be removed from the production build of the site, so it will only impact local development.

@gbnewby
Copy link
Contributor

gbnewby commented Aug 16, 2025 via email

@Thenlie
Copy link
Contributor Author

Thenlie commented Aug 16, 2025

@gbnewby Thanks for the quick feedback!

I have made another PR that shows the submodule approach. You can view that here: #186.

With this approach, I think there would not be any need to create a third repo. All the files would live in gutenbergsite, as they do today, and would simply be pulled into autocat3. There are still some issues with this approach, primarily that some changes will still require 2 PRs, one to each repo. This is not something a third repo would fix, and likely only fixable by merging into a single repo.

I left this PR unchanged in case we want to play with other options.

@eshellman
Copy link
Contributor

The reason we are needing to maintain autocat3 in parallel with gutenbergsite is that we're generating the header menus in 2 different ways. putting 2 generators in one repo doesn't fix that. Refactoring fixes that. Not hard to do. But better to do it when the header menu has settled down.

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.

3 participants