Skip to content

BoOz/spip_statique

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

spip_statique

Transformer un site SPIP en site statique (HTML/CSS/JS).

Usage

Choisir dans le terminal un répertoire où copier un site.

cd ~/Sites/mon_site

Lancer spip_statique.

spip_statique http://localhost/mon_site/

Le site http://localhost/mon_site/ est copié en HTML dans ~/Sites/mon_site.

Usage alternatif :

spip_statique http://localhost/mon_site/ repertoire_cible

Installation

Installer spip_statique la première fois.

cd ~/scripts

Copier dans le terminal

git clone https://github.com/BoOz/spip_statique.git
cd spip_statique
chmod +x spip_statique.sh

et valider.

Le script spip_statique.sh fonctionne.

~/scripts/spip_statique/spip_statique.sh http://localhost/mon_site/

Un alias dans le terminal

Ajouter un alias dans ~/.bash_profile.

vim ~/.bash_profile

Taper i puis ajouter

alias spip_statique="~/scripts/spip_statique/spip_statique.sh"

Taper esc puis :wq et valider.

Relancer le terminal.

. ~/.bash_profile

Mise à jour

cd la/ou/est/spip_statique
git pull

About

Transformer un site SPIP en site statique.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages