Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create site #60

Merged
merged 9 commits into from
Jun 18, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-----------------------------------------------------------------------------
Thank you for contributing to the PrestaShop Project Site!

Please take the time to edit the "Answers" rows below with the necessary information.
Click the form's "Preview" button to make sure the table is functional in GitHub. Thank you!
------------------------------------------------------------------------------>

| Questions | Answers
| ------------- | -------------------------------------------------------
| Description | Please be specific when describing the PR. What did you add, why did you submit it?
| Fixed ticket | Fixes #{issue number here} if there is a related issue
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.82.0'
extended: true

- name: Clean public directory
run: rm -rf public

- name: Build site
run: hugo

- name: Create a CNAME file which mapping to our custom domain
run: cd src/ && echo 'www.prestashop-project.org' > public/CNAME

- name: Return to root directory
run: cd ..

- name: Deploy
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public

8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ignore Mac system files
.DS_store

## Directory-based project format:
.idea/
/public/
**/node_modules/
/resources/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/ps-org-theme"]
path = themes/ps-org-theme
url = https://github.com/eternoendless/ps-org-theme.git
eternoendless marked this conversation as resolved.
Show resolved Hide resolved
28 changes: 28 additions & 0 deletions bin/installHugo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
set -euo pipefail

export HUGO_VERSION="0.83.1"

if [ `uname` = "Linux" ]; then
export HUGO_OS="Linux-64bit"
elif [ `uname` = "Darwin" ]; then
export HUGO_OS="macOS-64bit"
else
echo 'This script only works on Linux and Mac os'
exit 1
fi

cd "$( dirname "$0" )/../" && pwd

if ! command -v COMMAND &> /dev/null
then
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_${HUGO_OS}.tar.gz

rm -rf hugo
tar -xzf hugo_${HUGO_VERSION}_${HUGO_OS}.tar.gz hugo
rm hugo_${HUGO_VERSION}_${HUGO_OS}.tar.gz
else
echo 'Hugo is already installed in this environment'
fi

hugo version
30 changes: 30 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
baseURL: "https://www.prestashop-project.org/"
languageCode: "en-us"
defaultContentLanguage: "en"
title: "PrestaShop Project - Open Source e-Commerce platform"

theme: "ps-org-theme"
enableGitInfo: true
enableRobotsTXT: true

markup:
highlight:
codeFences: true
guessSyntax: true
hl_Lines: ""
lineNoStart: 1
lineNos: false
lineNumbersInTable: true
noClasses: false
style: github
tabWidth: 4
goldmark:
renderer:
unsafe: true
parser:
attribute:
block: true
tableOfContents:
endLevel: 4
ordered: false
startLevel: 1
17 changes: 17 additions & 0 deletions config/_default/menus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
main:
#- name: "About"
# url: "about"
# enable: false
# weight: 1
- name: "Blog"
url: "https://build.prestashop.com"
weight: 1
- name: "GitHub"
url: "https://github.com/PrestaShop/PrestaShop/"
weight: 2
- name: "Contribute"
url: "https://devdocs.prestashop.com/1.7/contribute/"
weight: 3
- name: "Resources"
weight: 4

25 changes: 25 additions & 0 deletions config/_default/params.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

logo: "images/prestashop-logo.png"
logo_width: "200px"

copyright: >
Content distributed under the [Creative Commons BY-SA 4.0 License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).<br>
"PrestaShop" and the PrestaShop logos are international trademarks of PrestaShop SA.

variables:
primary_color: "#442CC7"
text_color: "#777"
text_color_dark: "#222"
body_color: "#fff"
border_color: "#ECECEC"
black: "#000"
white: "#fff"
light: "#E5E1F9"

pluralizeListTitles: false

projectUrls:
gitHub: "https://github.com/PrestaShop/PrestaShop/"
reportBug: "https://github.com/PrestaShop/PrestaShop/issues"
slack: "https://github.com/PrestaShop/open-source/blob/master/slack/readme.md"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the file /slack/readme.md will now be available as one webpage on prestashop-project.org ? One resources page?


37 changes: 37 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
####################### Banner #########################
banner:
title: "Welcome to the PrestaShop Project"
image: "images/home-artwork.png"
content: "The PrestaShop project is a universal open-source software platform to build your e-commerce solution."

##################### Featured links ##########################
feature:
enable: true
title: "Project documentation"
feature_item:
- name: "User documentation"
link: "https://prestashop.gitbook.io/english-documentation-1-7/"
icon: "fas fa-book"
content: "For merchants and end users"
- name: "Developer documentation"
link: "https://devdocs.prestashop.com"
icon: "fas fa-file-code"
content: "For integrators, core and module developers"
- name: "Specifications"
link: "https://build.prestashop.com/prestashop-specs/"
icon: "fas fa-map"
content: "For integrators, core and module developers"


##################### Call to action #####################
call_to_action:
enable: true
title: "Ready to get started?"
image: "images/open-source.png"
content: "PrestaShop is freely available on GitHub."
button:
enable: true
label: "Latest Releases"
link: "https://github.com/PrestaShop/PrestaShop/releases"
---
7 changes: 7 additions & 0 deletions content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "About the PrestaShop Project"
---

## What is PrestaShop?

PrestaShop is an open-source e-Commerce content management system
eternoendless marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# PrestaShop Code of Conduct v1.0
---
title: PrestaShop Code of Conduct
menu:
main:
parent: 'Resources'
name: 'Code of Conduct'
---

## Our Pledge

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions user-groups/readme.md → content/user-groups/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
menu:
main:
parent: "Resources"
name: "User groups"
---

# Using PrestaShop brand and logo for a user group

You have created a user group about PrestaShop, or you are creating content like blog articles or videos about PrestaShop, and you would like to know how to use the PrestaShop brand and logo. You are in the right place.
Expand Down
Binary file added static/images/home-artwork.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/open-source.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/prestashop-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions themes/ps-org-theme
Submodule ps-org-theme added at 767a27