Skip to content

Commit

Permalink
chore: use sed to turn symlinks to copies
Browse files Browse the repository at this point in the history
  • Loading branch information
foxyseta committed Sep 2, 2024
1 parent 0584d44 commit c84139a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ jobs:
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
# Use README as homepage
run: |
cp content/README.md content/_index.md &&
find content -type -l | xargs sed -i '' # see README
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ Static [Hugo](https://gohugo.io) website for
Before invoking `hugo`, use

```bash
cp content/README.md content/_index.md
find content -type -l | xargs sed -i ''
```

This way, `visimp`'s README will be used as the website's homepage. The CI
pipeline also takes care of this.
This way, symbolic links in `visimp` will become copies of the respective
original files. The CI pipeline also takes care of this. Please do not commit
these changes. Our Hugo theme does not work well with symbolic links, but there
are sometimes important to maintain the codebase non-repetitive.
2 changes: 1 addition & 1 deletion content
Submodule content updated 1 files
+1 −0 _index.md

0 comments on commit c84139a

Please sign in to comment.