GitHub - Terminal/Discord_Fork: A JAM Stack Discord Bot List, built with Jekyll...
source link: https://github.com/Terminal/Discord_Fork
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Add your bot via the E-Zed editor or via GitHub
NOTE: Please do not complain over how bad the site is made, this is mostly made as a way to be more unique and prove that a list site can possibly be made with Jekyll.
Requirements
- Ruby 2.4 or above - https://rubyinstaller.org/downloads/
- jekyll & bundle - https://jekyllrb.com/
- sass & scss_lint - Ruby Packages (gem install)
- Node.js 10.x
OR
- Netlify
Commands
bundle exec jekyll serve
Testing website locally with localhost (Port 4000 is default)
scss-lint
Check if your source code is linter friendly (SCSS only)
webpack --watch
Build all JavaScript files into a single file
First Setup
You will require some kind of Linux. I prefer Ubuntu 18.04. Windows users may wish to use the Windows Subsystem for Linux.
Translating
Ubuntu 18.04, 16.04, WSL Ubuntu
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y build-essential ruby-full ruby-bundler nodejs
npm i
# run both simultaneously
bundler exec jekyll serve
webpack --watch
Authentication Server
Follow me
Edit _data/links.yml
to point to the auth server.
Thanks
Technical Support
Developer Notes
Pages within the _pages folder should not have a "French" copy.
These need to use the `desc_code` front matter to use a new description within the `_data/:lang/descriptions.yml` file
Pages within the _bots, _docs and _servers folder can have a subfolder with the language
The language of the page needs to be placed in the front matter, like
---
pagename: wow
github:
owner: Terminal
repo: Discord_Fork
lang: fr
---
Copies of the same language do not pass information between each other.
For example, if you have an English file, the front matter needs to be copied into the French file, with changes to the description and page name for language differences
All translations for the website itself, and not user generated content (and documentation) should be in the _data/:lang folder.
Translators need to go through all .yml files.
Am I a terrible person?
Yes
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK