• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ldtteam/MinecoloniesWiki: Wiki for the Minecraft mod MineColonies

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ldtteam/MinecoloniesWiki

开源软件地址(OpenSource Url):

https://github.com/ldtteam/MinecoloniesWiki

开源编程语言(OpenSource Language):

HTML 78.3%

开源软件介绍(OpenSource Introduction):

MineColonies Wiki

A wiki for the Minecraft mod MineColonies. Read it here!

Guidelines to pages

Worker/building names

We want to avoid having to change a bazillion occurences all over the wiki in case we ever need to rename a worker or a building, for that reason there are 2 templates (_includes/worker/name.html and _includes/building/name.html) which you can use to write the name of the worker/building directly based on the name defined in the data files.

You can use these by doing {% include building/name.html %} (only directly in the building source page) OR {% include building/name.html key="apiary" %} (when referring to a building outside of the building page itself). This setup is identical for the worker (just change the include to worker/name.html).

Links

We have a lot of links in the website referring to other documentation pages, a lot of them are still configured with a manually written name + path, for example: [Apiary](/source/buildings/apiary).

Going forwards we are using link templates, you can find these in _includes/links/. These can refer to some commonly used link pages and can be expanded in the future aswell.

Buildings

In order to write a building link you have to write: {% include links/building.html key="apiary" %} where the key of the building can be found in the _data/buildinginfo.yml (top most entries in the file, i.e. apiary).

These link templates will automatically generate the path to the building aswell as use the proper name defined the in _data/buildinginfo.yml.

Workers

In order to write a worker link you have to write: {% include links/worker.html key="alchemist" %} where the key of the worker can be found in the _data/workerinfo.yml (top most entries in the file, i.e. alchemist).

These link templates will automatically generate the path to the worker aswell as use the proper name defined the in _data/workerinfo.yml.

Research

In order to write a research link you have to write: {% include links/research.html tree="Civilian" name="Stamina" %} where the tree and name of the research have to match exactly the way they're written in the research page (this is so the path fragment is generated correctly).

Testing locally

The project can be ran locally to test if your changes work as expected. You need the following installed to be able to run it.

Preparing the project

After cloning the project and having all the required tools installed you need to run: bundle install

This will install all of the project dependencies defined in the Gemfile.

Running the project

The project is served using Jekyll, this processes all of the files in the project and turns it into proper HTML before deploying it.

In order to serve the project locally you have to run: cd pages bundle exec jekyll serve




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
GoLangMc/minecraft-server: A Minecraft server implemented in Go发布时间:2022-08-16
下一篇:
m0r13/mclogalyzer: Minecraft Server Log Analyzer发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap