Giter Site home page Giter Site logo

guppy's Introduction

Guppy

Guppy is a tiny ASP.NET web site that serves up CommonMark (or HTML) content from an external directory.

It was written because I wanted to serve up CommonMark content from a GitHub repository, but I wanted to host it in IIS so it could co-exist better with other IIS sites on the server.

Getting Started

Getting Guppy up an running shouldn't take longer than a few minutes:

  • Clone the repo
  • Open Guppy.sln in Visual Studio 2013.
  • Modify the GuppyContentDirectory key in web.config to point to the ExampleContent directory.
    • Note that this needs to be an absolute path, like:
      • C:\Repos\Guppy\ExampleContent
  • Run the solution (F5) and point your browser at the VS web server.

Creating Content

For an example of Guppy in action, the Pinta website repo powers the Pinta web site.

Structure

There are 2 directories that are used to serve the website:

  • Content - Contains content that is served
  • Theme - Contains the skin (template, css, images, etc.) that presents the content

Technical Details

Content is preferred to be written in CommonMark (a Markdown derivitive), but can also be written in HTML if advanced features are needed.

New URLs are created simply by adding a new .md or .html file to the Content directory.

For example, to create example.com/new-page, add a file called new-page.md or new-page.html to the Content directory.

You can also create hierarchy by adding directories to the Content directory.

For example, adding Content/AwesomePages/new-page.md will create example.com/awesomepages/new-page.

Content Order of Precedence

Given a URL like example.com/releases, content will be searched for in the following order:

  • Content/releases.md
  • Content/releases.html
  • Content/Releases/index.md
  • Content/Releases/index.html
  • 404 (Not Found) returned

guppy's People

Contributors

jpobst avatar

Watchers

 avatar  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.