diff --git a/package.json b/package.json new file mode 100644 index 00000000000..8f681a18638 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "devdocs-site", + "version": "1.0.0", + "private": true, + "description": "PrestaShop Developer Documentation Site", + "scripts": { + "dev": "cd src && hugo server --config config.yml,config-local.yml", + "build": "cd src && hugo --config config.yml,config-local.yml", + "build:prod": "cd src && hugo --config config.yml" + }, + "repository": { + "type": "git", + "url": "https://github.com/PrestaShop/devdocs-site.git" + } +} diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 00000000000..2525a28d3d9 --- /dev/null +++ b/src/.gitignore @@ -0,0 +1 @@ +core-symlink-* \ No newline at end of file diff --git a/src/config-local.yml b/src/config-local.yml new file mode 100644 index 00000000000..20678c10048 --- /dev/null +++ b/src/config-local.yml @@ -0,0 +1,2 @@ +params: + enableCustomGitInfo: false diff --git a/src/layouts/shortcodes/console-commands.html b/src/layouts/shortcodes/console-commands.html new file mode 100644 index 00000000000..b9a8dec1cdf --- /dev/null +++ b/src/layouts/shortcodes/console-commands.html @@ -0,0 +1,51 @@ +{{- $currentPage := .Page -}} +{{- $pages := .Page.Pages -}} + +{{- /* Define categories and their display order */ -}} +{{- $categories := slice + "Module Management" + "Translations" + "Theme Management" + "Development & Debugging" + "Code Quality & Linting" + "Database & Schema" + "Search & Indexing" + "Assets & Media" + "API & Documentation" + "Feature Flags" + "Tax Management" + "License & Legal" + "Internal/Advanced" + "Utilities" +-}} + +{{- /* Group pages by category */ -}} +{{- range $categories -}} + {{- $categoryName := . -}} + {{- $categoryPages := where $pages ".Params.category" $categoryName -}} + {{- if $categoryPages -}} +

{{ $categoryName }}

+ + {{- end -}} +{{- end -}} + +{{- /* List uncategorized commands */ -}} +{{- $uncategorized := where $pages ".Params.category" nil -}} +{{- if $uncategorized -}} +

Other Commands

+ +{{- end -}}