Updated to help text as in commit 65f7d7b
This commit is contained in:
parent
65f7d7beaa
commit
1e4653cd6e
1 changed files with 17 additions and 12 deletions
29
README.md
29
README.md
|
@ -5,21 +5,23 @@
|
||||||
|
|
||||||
[[[ DESCRIPTION ]]]
|
[[[ DESCRIPTION ]]]
|
||||||
|
|
||||||
This is pfaltgall v0.3, a CLI PHP script that can generate an html file
|
This is pfaltgall v0.3.1, a CLI PHP script that can generate an html file
|
||||||
with a gallery from your Pixelfed profile. The html gallery file will load
|
with a gallery from your Pixelfed profile. The html gallery file will load
|
||||||
images dynamically, display each one using almost all the available screen
|
images dynamically from your Pixelfed instance or its CDN, display each one
|
||||||
space and let you jump right from the start to any point in the timeline.
|
using almost all the available screen space and let you jump right from the
|
||||||
It will also show each post’s text content, its date, and provide each image
|
start to any point in the timeline.
|
||||||
with its description (alt-text), if present.
|
It will also show each post’s text content, its date, and provide each image
|
||||||
See my example gallery here: https://rame.altervista.org/foto-pixelfed
|
with its description (alt-text), if it’s present on Pixelfed.
|
||||||
|
Here is example gallery: https://rame.altervista.org/foto-pixelfed
|
||||||
In order to create the html gallery file, you just need to login to your
|
In order to create the html gallery file, you just need to login to your
|
||||||
Pixelfed account and get an app token (Settings -> Applications -> Create new
|
Pixelfed account from the official web frontend and get an app token
|
||||||
token), then create a configuration file for pfaltgall like this (don’t write
|
(Settings -> Applications -> Create new token), then create a configuration
|
||||||
the «---» lines):
|
file for pfaltgall like this (don’t write the «---» lines):
|
||||||
|
|
||||||
---
|
---
|
||||||
host=your_instance_host
|
host=your_instance_host
|
||||||
token=your_token
|
token=your_token
|
||||||
|
lang=your_html_page_language_code
|
||||||
---
|
---
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
@ -27,13 +29,16 @@ token=your_token
|
||||||
---
|
---
|
||||||
host=pixelfed.social
|
host=pixelfed.social
|
||||||
token=as7f8a7s0d89f7as97df09a8s7d90f81jkl2h34lkj12h3jkl4
|
token=as7f8a7s0d89f7as97df09a8s7d90f81jkl2h34lkj12h3jkl4
|
||||||
|
lang=it
|
||||||
---
|
---
|
||||||
|
|
||||||
Then run pfaltgall with the path of the configuration file you have created
|
Then run pfaltgall with the path of the configuration file you have created
|
||||||
and the path of an output file as arguments (if the output file exists, it
|
and the path of an output file as arguments (if the output file exists, it
|
||||||
will be overwritten), e.g.: «pfaltgall goofy@pixelfed.social.conf index.html».
|
will be overwritten), e.g.: «pfaltgall pixelfed.social.conf index.html».
|
||||||
This will create an html file that will be ready to be put where you want
|
This will create an «index.html» file that will be ready to be put where you
|
||||||
(you’ll also be able to see it locally, obviously).
|
want (you’ll also be able to see it locally, obviously). There is a sample
|
||||||
|
bash script that you can adapt to run pfaltgall and automatically upload
|
||||||
|
it where you want.
|
||||||
|
|
||||||
[[[ OPTIONS ]]]
|
[[[ OPTIONS ]]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue