|nokoru d808efe2e9 modify README.md||2 days ago|
|templates||1 month ago|
|.gitignore||1 month ago|
|CONTRIBUTING.md||1 month ago|
|COPYING||4 days ago|
|README.md||2 days ago|
|check_deletion.py||4 weeks ago|
|check_upload.py||4 weeks ago|
|del||1 month ago|
|destroy||2 weeks ago|
|help||4 days ago|
|init||1 month ago|
|list||2 months ago|
|list.py||2 months ago|
|markup.py||1 month ago|
|mod||1 month ago|
|neocities_files.py||1 month ago|
|new||1 month ago|
|push||1 month ago|
|refresh||2 months ago|
|refresh.py||1 month ago|
nci is a webscript for Neocities written in bash and python that lets you easily post, delete and modify blog entries and update files from your Linux terminal. I created this webscript to create and manage my neocities blog, so nci is just a hobby project and might not be a very good program. I just wanted to share the nci engine for fun and helping people, so adapt the scripts to your needs or just try it!
you want to install it? OK! just remember I'm not responsible for any damages you do to your website caused by the misuse of nci.
nci works in a specific directory that contains the scripts of the nci system. Basically you
cd your_neocities_website_directory and then you run nci
commands inside of it to update your website files or blog entries, if you've used git, the behavior is pretty similar.
Dependencies are python 3.x.x, curl, pip and the pip markdown module. Additionally, you need git to clone the nci repo, so install all the required packages before using nci. If you're using Debian, Ubuntu, Mint or any Debian-based distro, then run:
sudo apt install python3 python3-pip curl git
pip3 install markdown
If you're using any other distro, then use your corresponding commands in order to install the nci dependencies.
git clone https://notabug.org/nokoru/nci.git
mv nci <your_website_directory>
./initto initialize the nci system.
Once you installed nci, you'll see your website directory has now two main folders: "public_html" and "entries". Those folders contain your blog data and website files.
Additionally, you'll find your website directory has a file named "nci.conf". Don't delete it! (actually, don't delete anything that the ./init script generates)
TITLE:<your_entry_title> DATE:<today> BODY: <start writing your thoughts and feelings here>
BODY:line, don't type anything next to "BODY:".
./refresh command is really important, cause by using that command you can, well, "refresh"/rewrite your blog HTML and RSS files,
when you "refresh" your blog, you're applying changes like adding created entries, removing deleted ones and updating the content of the
entries you modified.
./help to see a list of useful commands like
./push command to upload your website files ("public_html/*").
WARNING: If you already have a Neocities website, then download it (from your Neocities dashboard) and paste all the files inside the "public_html/" directory! ANY
file that is not found inside the public_html directory will be deleted!
nci was originally licensed under the WTFPL, but I want my projects to be formally in the public domain without caring about lack of warranty disclaimers or crap like that. I don't like license agreements, unfortunately laws force people who's against selfishness that are copyright laws to license their works in some way, so nci is now licensed under the Unlicense (basically public domain). You can do whatever you like with nci. No rights reserved (see COPYING file if you want to read the Unlicense legal crap).