Coder Social home page Coder Social logo

codeguro / passenger_library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phusion/passenger_library

0.0 1.0 0.0 11.54 MB

Phusion Passenger documentation

Home Page: https://www.phusionpassenger.com/docs

License: Other

Ruby 2.35% HTML 92.25% JavaScript 3.12% CSS 2.28%

passenger_library's 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/

passenger_library's People

Contributors

aurelienc avatar boykoc avatar camjn avatar cedricdlb avatar chrztoph avatar cmbankester avatar codeguro avatar damienalexandre avatar dimitrioslisenko avatar dunn avatar floord avatar foobarwidget avatar fotinakis avatar furu avatar gr8bit avatar gsrohde avatar lasat avatar lhafkamp avatar onixgh avatar rbr avatar scarhand avatar serkandurusoy avatar shaneog avatar shhavel avatar siegy22 avatar stevenschobert avatar syndbg avatar tinco avatar vfulco avatar vincentpaca avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.