diff --git a/README.md b/README.md new file mode 100644 index 00000000000..3f6b71f05f0 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +--- +--- + +# Introduction + +This README lives at https://github.com/springframework/gh-pages#readme. +If you're seeing it within a specific Spring project's 'gh-pages' branch, that's +because this file, along with other files gets periodically merged in order to +share common content like headers and footers, CSS, etc. + +If you're reading this file + +## How to start a new 'gh-pages' Project page +From within your Spring project's git checkout directory: + + git remote add gh-pages-upstream https://github.com/springframework/gh-pages.git + git checkout --orphan gh-pages + git pull gh-pages-upstream gh-pages + + +## Create _config.yml file and add update your project info +For example: + + name: Spring Data JPA + baseurl: /spring-data-jpa + +## Create index.html +1. Copy common-index.html to index.html +2. Add your content + +## Commit your changes + git push origin gh-pages + + +# How to keep common gh-pages content up to date + git checkout gh-pages + git pull --no-ff gh-pages-upstream gh-pages diff --git a/common.html b/common.html deleted file mode 100644 index 3bd04ab6fc0..00000000000 --- a/common.html +++ /dev/null @@ -1,66 +0,0 @@ ---- -layout: default -title: {{ site.project_name }} ---- - -
-git remote add gh-pages-common https://github.com/springframework/common.git -git checkout --orphan gh-pages -git pull gh-pages-common gh-pages -- -
-name: Spring Data JPA -baseurl: /spring-data-jpa -- -
-git push origin gh-pages -- -
-git checkout gh-pages -git pull --no-ff gh-pages-common gh-pages --