Skip to content

How to include folders from main repo when serving github pages from /docs? #23948

Answered by bweston6
bweston6 asked this question in General
Discussion options

You must be logged in to vote

As I wanted to keep my site in the /docs folder I used GitHub actions to copy the relevant files on every push.

My prior soultion gave the issue that for every commit I made, an additional commit was made to copy the files into their locations in the /docs folder.

To fix this I linked to the files the other way around. This is to say that I kept my site documents in the /docs folder and linked the contents to folders elsewhere in the repo.

In hindsite this makes much more sense and uses the symbolic links as shortcuts to my messy /docs folder. It also fixes the issue of having multiple commits for a single push.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant