Skip to content

Commit

Permalink
add copy.sh: script to copy required files from root to website/
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdi Nassim KHODJA <18899702+naskio@users.noreply.github.com>
  • Loading branch information
naskio committed Jul 22, 2024
1 parent eb1b4ae commit c818e57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ paginate_path: "/blog/page:num/"
exclude:
- internal
- README.md
- copy.sh
- Gemfile
- Gemfile.lock
10 changes: 10 additions & 0 deletions website/copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
##################################################################################
##### Copy markdown files from root directory and docs/ to current directory #####
##################################################################################

# Copy CODE_OF_CONDUCT.md and CONTRIBUTING.md to _includes/ but don't overwrite existing files
rsync -av --ignore-existing ../CODE_OF_CONDUCT.md ../CONTRIBUTING.md _includes/

# Copy everything from docs/ to current directory but don't overwrite existing files
rsync -av --ignore-existing ../docs/* ./

0 comments on commit c818e57

Please sign in to comment.