From 94670f013abcf4af149252087f0fc375982010dc Mon Sep 17 00:00:00 2001 From: speedie Date: Wed, 28 Jun 2023 23:08:33 +0200 Subject: [PATCH] Rename pages to articles, just like speedie-page --- README.md | 2 +- .../Bookmarking using spmenu_run.md | 0 {pages => articles}/Compiling spmenu.md | 0 .../Configurable keybindings.md | 0 {pages => articles}/Configuring spmenu.md | 0 {pages => articles}/Cool spmenu tricks.md | 0 .../Extensive code documentation.md | 0 .../Functions in spmenu_run.md | 0 {pages => articles}/Generating themes.md | 0 {pages => articles}/Getting Started.md | 0 {pages => articles}/Home.md | 2 +- ...Pywal integration with wallpaper-spmenu.md | 0 {pages => articles}/Reading files.md | 0 {pages => articles}/Scripting with spmenu.md | 0 {pages => articles}/Sidebar.md | 0 {pages => articles}/Theme managers.md | 0 {pages => articles}/User scripts.md | 0 {pages => articles}/User themes.md | 40 +++++++++--------- .../Using Pywal with spmenu.md | 0 .../Using spmenu as a run launcher.md | 0 {pages => articles}/Using spmenu on macOS.md | 0 .../Using spmenu to parse text.md | 0 .../Using spmenu with GNOME.md | 0 .../binds.conf documentation.md | 0 {pages => articles}/images/arc-dark.png | Bin {pages => articles}/images/banner.png | Bin {pages => articles}/images/catppucino.png | Bin {pages => articles}/images/cyberpunk.png | Bin {pages => articles}/images/doom.png | Bin {pages => articles}/images/dracula.png | Bin {pages => articles}/images/everforest.png | Bin {pages => articles}/images/gruvbox-dark.png | Bin {pages => articles}/images/gruvbox-light.png | Bin .../images/gruvbox-material.png | Bin {pages => articles}/images/mono.png | Bin {pages => articles}/images/nord.png | Bin {pages => articles}/images/ocean-dark.png | Bin {pages => articles}/images/one-half-dark.png | Bin {pages => articles}/images/one-half-light.png | Bin {pages => articles}/images/preview.png | Bin {pages => articles}/images/solarized-dark.png | Bin .../images/solarized-light.png | Bin {pages => articles}/images/spmenu-themes.gif | Bin {pages => articles}/images/spmenu.svg | 0 {pages => articles}/images/tokyo-night.png | Bin {pages => articles}/images/visiblue.png | Bin {pages => articles}/images/x-erosion.png | Bin .../theme.conf documentation.md | 0 config.php | 2 +- index.php | 7 +-- 50 files changed, 24 insertions(+), 29 deletions(-) rename {pages => articles}/Bookmarking using spmenu_run.md (100%) rename {pages => articles}/Compiling spmenu.md (100%) rename {pages => articles}/Configurable keybindings.md (100%) rename {pages => articles}/Configuring spmenu.md (100%) rename {pages => articles}/Cool spmenu tricks.md (100%) rename {pages => articles}/Extensive code documentation.md (100%) rename {pages => articles}/Functions in spmenu_run.md (100%) rename {pages => articles}/Generating themes.md (100%) rename {pages => articles}/Getting Started.md (100%) rename {pages => articles}/Home.md (92%) rename {pages => articles}/Pywal integration with wallpaper-spmenu.md (100%) rename {pages => articles}/Reading files.md (100%) rename {pages => articles}/Scripting with spmenu.md (100%) rename {pages => articles}/Sidebar.md (100%) rename {pages => articles}/Theme managers.md (100%) rename {pages => articles}/User scripts.md (100%) rename {pages => articles}/User themes.md (88%) rename {pages => articles}/Using Pywal with spmenu.md (100%) rename {pages => articles}/Using spmenu as a run launcher.md (100%) rename {pages => articles}/Using spmenu on macOS.md (100%) rename {pages => articles}/Using spmenu to parse text.md (100%) rename {pages => articles}/Using spmenu with GNOME.md (100%) rename {pages => articles}/binds.conf documentation.md (100%) rename {pages => articles}/images/arc-dark.png (100%) rename {pages => articles}/images/banner.png (100%) rename {pages => articles}/images/catppucino.png (100%) rename {pages => articles}/images/cyberpunk.png (100%) rename {pages => articles}/images/doom.png (100%) rename {pages => articles}/images/dracula.png (100%) rename {pages => articles}/images/everforest.png (100%) rename {pages => articles}/images/gruvbox-dark.png (100%) rename {pages => articles}/images/gruvbox-light.png (100%) rename {pages => articles}/images/gruvbox-material.png (100%) rename {pages => articles}/images/mono.png (100%) rename {pages => articles}/images/nord.png (100%) rename {pages => articles}/images/ocean-dark.png (100%) rename {pages => articles}/images/one-half-dark.png (100%) rename {pages => articles}/images/one-half-light.png (100%) rename {pages => articles}/images/preview.png (100%) rename {pages => articles}/images/solarized-dark.png (100%) rename {pages => articles}/images/solarized-light.png (100%) rename {pages => articles}/images/spmenu-themes.gif (100%) rename {pages => articles}/images/spmenu.svg (100%) rename {pages => articles}/images/tokyo-night.png (100%) rename {pages => articles}/images/visiblue.png (100%) rename {pages => articles}/images/x-erosion.png (100%) rename {pages => articles}/theme.conf documentation.md (100%) diff --git a/README.md b/README.md index 7d7b71c..5d0f34f 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ any page or add new pages, but due to abuse that has since been disabled and removed. Pages/articles should be written in Markdown, and should be located in -the `pages/` directory. The sidebar itself can also be found in `pages/`. +the `articles/` directory. The sidebar itself can also be found in `articles/`. Before submitting your changes, please test locally. If you have `php` installed, you can simply do this by running `test.sh` and navigating diff --git a/pages/Bookmarking using spmenu_run.md b/articles/Bookmarking using spmenu_run.md similarity index 100% rename from pages/Bookmarking using spmenu_run.md rename to articles/Bookmarking using spmenu_run.md diff --git a/pages/Compiling spmenu.md b/articles/Compiling spmenu.md similarity index 100% rename from pages/Compiling spmenu.md rename to articles/Compiling spmenu.md diff --git a/pages/Configurable keybindings.md b/articles/Configurable keybindings.md similarity index 100% rename from pages/Configurable keybindings.md rename to articles/Configurable keybindings.md diff --git a/pages/Configuring spmenu.md b/articles/Configuring spmenu.md similarity index 100% rename from pages/Configuring spmenu.md rename to articles/Configuring spmenu.md diff --git a/pages/Cool spmenu tricks.md b/articles/Cool spmenu tricks.md similarity index 100% rename from pages/Cool spmenu tricks.md rename to articles/Cool spmenu tricks.md diff --git a/pages/Extensive code documentation.md b/articles/Extensive code documentation.md similarity index 100% rename from pages/Extensive code documentation.md rename to articles/Extensive code documentation.md diff --git a/pages/Functions in spmenu_run.md b/articles/Functions in spmenu_run.md similarity index 100% rename from pages/Functions in spmenu_run.md rename to articles/Functions in spmenu_run.md diff --git a/pages/Generating themes.md b/articles/Generating themes.md similarity index 100% rename from pages/Generating themes.md rename to articles/Generating themes.md diff --git a/pages/Getting Started.md b/articles/Getting Started.md similarity index 100% rename from pages/Getting Started.md rename to articles/Getting Started.md diff --git a/pages/Home.md b/articles/Home.md similarity index 92% rename from pages/Home.md rename to articles/Home.md index 99bcfb3..e7554e2 100755 --- a/pages/Home.md +++ b/articles/Home.md @@ -1,4 +1,4 @@ -![preview image](/pages/images/banner.png) +![preview image](/articles/images/banner.png) # Welcome to the spmenu wiki diff --git a/pages/Pywal integration with wallpaper-spmenu.md b/articles/Pywal integration with wallpaper-spmenu.md similarity index 100% rename from pages/Pywal integration with wallpaper-spmenu.md rename to articles/Pywal integration with wallpaper-spmenu.md diff --git a/pages/Reading files.md b/articles/Reading files.md similarity index 100% rename from pages/Reading files.md rename to articles/Reading files.md diff --git a/pages/Scripting with spmenu.md b/articles/Scripting with spmenu.md similarity index 100% rename from pages/Scripting with spmenu.md rename to articles/Scripting with spmenu.md diff --git a/pages/Sidebar.md b/articles/Sidebar.md similarity index 100% rename from pages/Sidebar.md rename to articles/Sidebar.md diff --git a/pages/Theme managers.md b/articles/Theme managers.md similarity index 100% rename from pages/Theme managers.md rename to articles/Theme managers.md diff --git a/pages/User scripts.md b/articles/User scripts.md similarity index 100% rename from pages/User scripts.md rename to articles/User scripts.md diff --git a/pages/User themes.md b/articles/User themes.md similarity index 88% rename from pages/User themes.md rename to articles/User themes.md index 47352e4..33dccf5 100755 --- a/pages/User themes.md +++ b/articles/User themes.md @@ -1,6 +1,6 @@ # User themes -![image](/pages/images/spmenu-themes.gif) +![image](/articles/images/spmenu-themes.gif) **For Pywal notes, see [[Using Pywal with spmenu]].** @@ -33,28 +33,28 @@ Tip: Use `Ctrl+f` to search through the page. - This config is the default configuration for spmenu used in version 2.0.1 and earlier. -![image](/pages/images/arc-dark.png) +![image](/articles/images/arc-dark.png) - [Arc Dark](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Arc-Dark.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the [Arc Dark theme](https://github.com/arc-design/arc-theme) into spmenu. -![image](/pages/images/catppucino.png) +![image](/articles/images/catppucino.png) - [Catppuccin](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Catppuccin.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the [Catppuccin theme](https://github.com/catppuccin/catppuccin) into spmenu. -![image](/pages/images/cyberpunk.png) +![image](/articles/images/cyberpunk.png) - [Cyberpunk Neon](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Cyberpunk-Neon.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the [Cyberpunk Neon colorscheme](https://github.com/Roboron3042/Cyberpunk-Neon) into spmenu. This was partially taken from the [st patch](https://st.suckless.org/patches/cyberpunk-neon/). -![image](/pages/images/doom.png) +![image](/articles/images/doom.png) - [Doom One](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Doom-One.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) @@ -62,28 +62,28 @@ Tip: Use `Ctrl+f` to search through the page. colorscheme into spmenu. For those of you that like DistroTube's dmenu, this should get you close to that look. -![image](/pages/images/dracula.png) +![image](/articles/images/dracula.png) - [Dracula](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Dracula.conf) - Author: [speedie](https://eedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the [Dracula](https://draculatheme.com/) colorscheme into spmenu. -![image](/pages/images/gruvbox-dark.png) +![image](/articles/images/gruvbox-dark.png) - [Gruvbox (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Gruvbox-Dark.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the [Gruvbox Dark](https://github.com/morhetz/gruvbox) colorscheme into spmenu. -![image](/pages/images/gruvbox-light.png) +![image](/articles/images/gruvbox-light.png) - [Gruvbox (Light)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Gruvbox-Light.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the [Gruvbox Light](https://github.com/morhetz/gruvbox) colorscheme into spmenu. -![image](/pages/images/gruvbox-material.png) +![image](/articles/images/gruvbox-material.png) - [Gruvbox Material](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Gruvbox-Material.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) @@ -91,7 +91,7 @@ Tip: Use `Ctrl+f` to search through the page. Material](https://github.com/sainnhe/gruvbox-material) colorscheme into spmenu. -![image](/pages/images/everforest.png) +![image](/articles/images/everforest.png) - [Everforest (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Everforest-Dark.conf) - Author: [speedie](https://speedie.site) @@ -99,14 +99,14 @@ Tip: Use `Ctrl+f` to search through the page. implements the [Everforest](https://github.com/sainnhe/everforest) colorscheme into spmenu. -![image](/pages/images/nord.png) +![image](/articles/images/nord.png) - [Nord](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Nord.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the [Nord](https://www.nordtheme.com/) colorscheme into spmenu. -![image](/pages/images/solarized-dark.png) +![image](/articles/images/solarized-dark.png) - [Solarized (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Solarized-Dark.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) @@ -114,7 +114,7 @@ Tip: Use `Ctrl+f` to search through the page. [Solarized](https://ethanschoonover.com/solarized/) colorscheme into spmenu. Specifically the 'Dark' variant. -![image](/pages/images/solarized-light.png) +![image](/articles/images/solarized-light.png) - [Solarized (Light)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Solarized-Light.conf) - Author: [speedie](https://speedie.site) @@ -122,7 +122,7 @@ Tip: Use `Ctrl+f` to search through the page. implements the [Solarized](https://ethanschoonover.com/solarized/) colorscheme into spmenu. Specifically the 'Light' variant. -![image](/pages/images/ocean-dark.png) +![image](/articles/images/ocean-dark.png) - [Ocean (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Ocean-Dark.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) @@ -130,14 +130,14 @@ Tip: Use `Ctrl+f` to search through the page. who made the original theme, I got it from [terminal.sexy](https://terminal.sexy). -![image](/pages/images/one-half-dark.png) +![image](/articles/images/one-half-dark.png) - [One Half (Dark)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/One-Half-Dark.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the One Half colorscheme into spmenu, specifically the dark variant. -![image](/pages/images/one-half-light.png) +![image](/articles/images/one-half-light.png) - [One Half (Light)](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/One-Half-Light.conf) - Author: [speedie](https://speedie.site) @@ -145,7 +145,7 @@ Tip: Use `Ctrl+f` to search through the page. implements the One Half colorscheme into spmenu, specifically the light variant. -![image](/pages/images/tokyo-night.png) +![image](/articles/images/tokyo-night.png) - [Tokyo Night](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Tokyo-Night.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) @@ -153,19 +153,19 @@ Tip: Use `Ctrl+f` to search through the page. Night](https://github.com/enkia/tokyo-night-vscode-theme) colorscheme into spmenu, ported from the VS Code theme. -![image](/pages/images/x-erosion.png) +![image](/articles/images/x-erosion.png) - [X Erosion](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/x-erosion.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the x-erosion colorscheme from [terminal.sexy](https://terminal.sexy). -![image](/pages/images/mono.png) +![image](/articles/images/mono.png) - [Mono](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Mono.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) - This profile implements the Mono monochrome colorscheme from [terminal.sexy](https://terminal.sexy). -![image](/pages/images/visiblue.png) +![image](/articles/images/visiblue.png) - [Visiblue](https://git.speedie.site/speedie/spmenu-themes/raw/branch/master/Visiblue.conf) - Author: [speedie](https://speedie.site) ([speedie@speedie.site](mailto:speedie@speedie.site)) diff --git a/pages/Using Pywal with spmenu.md b/articles/Using Pywal with spmenu.md similarity index 100% rename from pages/Using Pywal with spmenu.md rename to articles/Using Pywal with spmenu.md diff --git a/pages/Using spmenu as a run launcher.md b/articles/Using spmenu as a run launcher.md similarity index 100% rename from pages/Using spmenu as a run launcher.md rename to articles/Using spmenu as a run launcher.md diff --git a/pages/Using spmenu on macOS.md b/articles/Using spmenu on macOS.md similarity index 100% rename from pages/Using spmenu on macOS.md rename to articles/Using spmenu on macOS.md diff --git a/pages/Using spmenu to parse text.md b/articles/Using spmenu to parse text.md similarity index 100% rename from pages/Using spmenu to parse text.md rename to articles/Using spmenu to parse text.md diff --git a/pages/Using spmenu with GNOME.md b/articles/Using spmenu with GNOME.md similarity index 100% rename from pages/Using spmenu with GNOME.md rename to articles/Using spmenu with GNOME.md diff --git a/pages/binds.conf documentation.md b/articles/binds.conf documentation.md similarity index 100% rename from pages/binds.conf documentation.md rename to articles/binds.conf documentation.md diff --git a/pages/images/arc-dark.png b/articles/images/arc-dark.png similarity index 100% rename from pages/images/arc-dark.png rename to articles/images/arc-dark.png diff --git a/pages/images/banner.png b/articles/images/banner.png similarity index 100% rename from pages/images/banner.png rename to articles/images/banner.png diff --git a/pages/images/catppucino.png b/articles/images/catppucino.png similarity index 100% rename from pages/images/catppucino.png rename to articles/images/catppucino.png diff --git a/pages/images/cyberpunk.png b/articles/images/cyberpunk.png similarity index 100% rename from pages/images/cyberpunk.png rename to articles/images/cyberpunk.png diff --git a/pages/images/doom.png b/articles/images/doom.png similarity index 100% rename from pages/images/doom.png rename to articles/images/doom.png diff --git a/pages/images/dracula.png b/articles/images/dracula.png similarity index 100% rename from pages/images/dracula.png rename to articles/images/dracula.png diff --git a/pages/images/everforest.png b/articles/images/everforest.png similarity index 100% rename from pages/images/everforest.png rename to articles/images/everforest.png diff --git a/pages/images/gruvbox-dark.png b/articles/images/gruvbox-dark.png similarity index 100% rename from pages/images/gruvbox-dark.png rename to articles/images/gruvbox-dark.png diff --git a/pages/images/gruvbox-light.png b/articles/images/gruvbox-light.png similarity index 100% rename from pages/images/gruvbox-light.png rename to articles/images/gruvbox-light.png diff --git a/pages/images/gruvbox-material.png b/articles/images/gruvbox-material.png similarity index 100% rename from pages/images/gruvbox-material.png rename to articles/images/gruvbox-material.png diff --git a/pages/images/mono.png b/articles/images/mono.png similarity index 100% rename from pages/images/mono.png rename to articles/images/mono.png diff --git a/pages/images/nord.png b/articles/images/nord.png similarity index 100% rename from pages/images/nord.png rename to articles/images/nord.png diff --git a/pages/images/ocean-dark.png b/articles/images/ocean-dark.png similarity index 100% rename from pages/images/ocean-dark.png rename to articles/images/ocean-dark.png diff --git a/pages/images/one-half-dark.png b/articles/images/one-half-dark.png similarity index 100% rename from pages/images/one-half-dark.png rename to articles/images/one-half-dark.png diff --git a/pages/images/one-half-light.png b/articles/images/one-half-light.png similarity index 100% rename from pages/images/one-half-light.png rename to articles/images/one-half-light.png diff --git a/pages/images/preview.png b/articles/images/preview.png similarity index 100% rename from pages/images/preview.png rename to articles/images/preview.png diff --git a/pages/images/solarized-dark.png b/articles/images/solarized-dark.png similarity index 100% rename from pages/images/solarized-dark.png rename to articles/images/solarized-dark.png diff --git a/pages/images/solarized-light.png b/articles/images/solarized-light.png similarity index 100% rename from pages/images/solarized-light.png rename to articles/images/solarized-light.png diff --git a/pages/images/spmenu-themes.gif b/articles/images/spmenu-themes.gif similarity index 100% rename from pages/images/spmenu-themes.gif rename to articles/images/spmenu-themes.gif diff --git a/pages/images/spmenu.svg b/articles/images/spmenu.svg similarity index 100% rename from pages/images/spmenu.svg rename to articles/images/spmenu.svg diff --git a/pages/images/tokyo-night.png b/articles/images/tokyo-night.png similarity index 100% rename from pages/images/tokyo-night.png rename to articles/images/tokyo-night.png diff --git a/pages/images/visiblue.png b/articles/images/visiblue.png similarity index 100% rename from pages/images/visiblue.png rename to articles/images/visiblue.png diff --git a/pages/images/x-erosion.png b/articles/images/x-erosion.png similarity index 100% rename from pages/images/x-erosion.png rename to articles/images/x-erosion.png diff --git a/pages/theme.conf documentation.md b/articles/theme.conf documentation.md similarity index 100% rename from pages/theme.conf documentation.md rename to articles/theme.conf documentation.md diff --git a/config.php b/config.php index 99c0044..bbf4d55 100755 --- a/config.php +++ b/config.php @@ -7,7 +7,7 @@ * See LICENSE file for copyright and license details. */ -define('PAGES_PATH', dirname(__FILE__). '/pages'); +define('PAGES_PATH', dirname(__FILE__). '/articles'); define('UPLOAD_FOLDER', 'images'); define('PAGES_EXT', 'md'); diff --git a/index.php b/index.php index 29cfc17..9020626 100755 --- a/index.php +++ b/index.php @@ -139,11 +139,6 @@ function fileNameForPage($page) return PAGES_PATH . "/$page." . PAGES_EXT; } -function imageLinkText($imgName) -{ - return "![".__("Image Description")."](/pages/".UPLOAD_FOLDER."/$imgName)"; -} - function sanitizeFilename($inFileName) { return str_replace(array('~', '..', '\\', ':', '|', '&'), '-', $inFileName); @@ -306,7 +301,7 @@ if ( $action === 'all' && ENABLE_ALL ) } arsort($filelist, SORT_NUMERIC); } - $html .= "

".__('Total').": ".count($pageNames)." ".__("pages")."

"; + $html .= "

".__('Total').": ".count($pageNames)." ".__("articles")."

"; $html .= ""; $html .= "". "".
".(($sortBy!='name')?("Name"):"".__('Name')."")."