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

phusion/passenger_library: Phusion Passenger documentation

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

开源软件名称(OpenSource Name):

phusion/passenger_library

开源软件地址(OpenSource Url):

https://github.com/phusion/passenger_library

开源编程语言(OpenSource Language):

HTML 92.6%

开源软件介绍(OpenSource Introduction):

Phusion Passenger documentation project

Welcome to the Passenger documentation project. The goal of this project is to write excellent documentation for the Phusion Passenger application server.

You can view the live version of this documentation at https://www.phusionpassenger.com/docs.

Documentation is written in markdown and HTML. The final output is generated through the Middleman static site generator.

Contributing

Because our documentation changes based on which language or integration the user chooses, our structure might feel a bit different than you're used to.

Let's say you choose Python as the language you are going to use and you want to edit the Quickstart article because you noticed we left something out. Here's how to find the right file:

You navigate to tutorials because Quickstart is an article in the tutorial section. From there you'll find an index.html.md.erb file and a directory for every language. The index.html.md.erb will contain the following script:

<script>document.addEventListener("DOMContentLoaded", function() { return redirect_to_lang() });</script>

This script will look at which language was chosen by the user and then redirect to that directory. So that's where you'll find the Python file you want to edit. Open the Python directory and edit the index.html.md.erb file.

Now sometimes you'll open the index.html.md.erb file and you might find that the only content is a Middleman partial. For example in the Installation article you will find:

<%= render_partial("../shared/non_ruby") %>

In this case we're using the same content for multiple language options, navigate one directory back and open the shared directory and edit _non_ruby.html.md.erb.

Once you're done editing, create a pull request like you normally would.

Thank you for contributing!

By contributing, you agree to license your contribution under CC BY SA 4.0.

Previewing or generating the documentation website

You will need Ruby installed in order to preview or generate the documentation website.

Install the gem bundle:

bundle install

Then run Middleman:

bundle exec middleman s

This will launch the website at http://127.0.0.1:4567/




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
arthurgregorio/library: Simple app to show how to work with Jee standard framewo ...发布时间:2022-08-15
下一篇:
owncloud/ios-library发布时间:2022-08-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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