From 3bda6cdfdb48bcd4dbf8da96f98e27fcdf76a3c9 Mon Sep 17 00:00:00 2001 From: Pablo Borowicz Date: Fri, 30 Jul 2021 16:16:25 +0200 Subject: [PATCH] Update theme --- .env.example | 1 - .github/workflows/build.yml | 41 ----------- .gitmodules | 4 - bin/installHugo.sh | 21 ------ docker-compose.yml | 16 ---- src/config.yml | 55 -------------- src/layouts/index.html | 86 ---------------------- src/layouts/robots.txt | 2 - src/layouts/shortcodes/ghcontributors.html | 31 -------- src/layouts/shortcodes/include-md.html | 2 - src/themes/ps-docs-theme | 1 - 11 files changed, 260 deletions(-) delete mode 100644 .env.example delete mode 100644 .github/workflows/build.yml delete mode 100644 .gitmodules delete mode 100755 bin/installHugo.sh delete mode 100644 docker-compose.yml delete mode 100644 src/config.yml delete mode 100644 src/layouts/index.html delete mode 100644 src/layouts/robots.txt delete mode 100644 src/layouts/shortcodes/ghcontributors.html delete mode 100644 src/layouts/shortcodes/include-md.html delete mode 160000 src/themes/ps-docs-theme diff --git a/.env.example b/.env.example deleted file mode 100644 index 3364d2f038..0000000000 --- a/.env.example +++ /dev/null @@ -1 +0,0 @@ -HUGO_SERVER_PORT=1313 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ac7c3d3668..0000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,41 +0,0 @@ -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 ./src/public - - - name: Build - run: cd src/ && hugo - - - name: Create a CNAME file which mapping to our custom domain - run: cd src/ && echo 'devdocs.prestashop.com' > 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: ./src/public diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index db064c95f1..0000000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "src/themes/ps-docs-theme"] - path = src/themes/ps-docs-theme - url = https://github.com/PrestaShop/ps-docs-theme.git - branch = main diff --git a/bin/installHugo.sh b/bin/installHugo.sh deleted file mode 100755 index baf595f715..0000000000 --- a/bin/installHugo.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -set -euo pipefail - -export HUGO_VERSION="0.82.0" - -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 - -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 diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index f2b89ae6c0..0000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,16 +0,0 @@ -version: "3.8" - -services: - hugo: - build: - # To build from github, you need to install docker-compose version=1.27.1 (Does not work with the last versions) - context: https://github.com/gohugoio/hugo.git - args: - - HUGO_BUILD_TAGS=extended - - volumes: - - ./:/site - working_dir: /site/src - ports: - - ${HUGO_SERVER_PORT}:${HUGO_SERVER_PORT} - command: server --bind 0.0.0.0 --port ${HUGO_SERVER_PORT} diff --git a/src/config.yml b/src/config.yml deleted file mode 100644 index afa15744b4..0000000000 --- a/src/config.yml +++ /dev/null @@ -1,55 +0,0 @@ -baseURL: "https://devdocs.prestashop.com/" -languageCode: "en-us" -defaultContentLanguage: "en" -title: "PrestaShop Developer Documentation" - -theme: "ps-docs-theme" -enableGitInfo: true -enableRobotsTXT: true -googleAnalytics: "UA-2753771-44" - -params: - editURL: "https://github.com/PrestaShop/docs/edit/master/src/content/" - ghRepoURL: "https://github.com/PrestaShop/docs/" - ghCommitURL: "https://github.com/PrestaShop/docs/commit/" - howToContributeURL: "/1.7/contribute/documentation/how/" - description: "Learn how to extend, modify and test PrestaShop, create modules, themes, and more." - author: "PrestaShop" - showVisitedLinks: false - disableInlineCopyToClipBoard: true - projectUrls: - gitHub: "https://github.com/PrestaShop/PrestaShop/" - reportBug: "https://github.com/PrestaShop/PrestaShop/issues" - slack: "https://www.prestashop-project.org/slack/readme/" - coverImage: "images/social-cover.jpg" - logoTitle: "PrestaShop DevDocs" - - # Default documentation version - versions: - current: "1.7" - -# For search functionality -outputs: - home: ["HTML", "RSS", "JSON"] - -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 diff --git a/src/layouts/index.html b/src/layouts/index.html deleted file mode 100644 index 914a04ad0b..0000000000 --- a/src/layouts/index.html +++ /dev/null @@ -1,86 +0,0 @@ -{{ partial "header.html" . }} - - navigation - - - - -
- {{if .Site.Home.Content }} - {{.Site.Home.Content}} - {{else}} - No content - {{ end }} - -
-
-

I'm a developer

-

Show me the good stuff!

- Get started -
-
-

I'm a user

-

Head over to

- User Documentation -
-
-
- -{{ partial "footer.html" . }} diff --git a/src/layouts/robots.txt b/src/layouts/robots.txt deleted file mode 100644 index 319bc3add4..0000000000 --- a/src/layouts/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Sitemap: {{ .Site.BaseURL }}sitemap.xml diff --git a/src/layouts/shortcodes/ghcontributors.html b/src/layouts/shortcodes/ghcontributors.html deleted file mode 100644 index 3e8a92872e..0000000000 --- a/src/layouts/shortcodes/ghcontributors.html +++ /dev/null @@ -1,31 +0,0 @@ - -
- {{ $url := .Get 0 }} - {{ range getJSON $url }} -
- - - {{.contributions}} commits -
- {{ end }} -
\ No newline at end of file diff --git a/src/layouts/shortcodes/include-md.html b/src/layouts/shortcodes/include-md.html deleted file mode 100644 index 8563e38a65..0000000000 --- a/src/layouts/shortcodes/include-md.html +++ /dev/null @@ -1,2 +0,0 @@ -{{$file := .Get 0}} -{{ $file | readFile | markdownify }} diff --git a/src/themes/ps-docs-theme b/src/themes/ps-docs-theme deleted file mode 160000 index 0996597a68..0000000000 --- a/src/themes/ps-docs-theme +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0996597a682048d596892aa933ef5672a7460e8d