Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renatogeh/gofaq
Never has it been easier to GoFAQ yourself!
https://github.com/renatogeh/gofaq
Last synced: 23 days ago
JSON representation
Never has it been easier to GoFAQ yourself!
- Host: GitHub
- URL: https://github.com/renatogeh/gofaq
- Owner: RenatoGeh
- License: bsd-3-clause
- Created: 2017-02-12T03:08:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-02-24T04:51:03.000Z (over 7 years ago)
- Last Synced: 2024-06-20T12:45:39.044Z (5 months ago)
- Language: Go
- Size: 46.9 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoFAQ
[![Go Report Card](https://goreportcard.com/badge/github.com/renatogeh/gofaq)](https://goreportcard.com/report/github.com/renatogeh/gofaq)
[![Build Status](https://travis-ci.org/RenatoGeh/gofaq.svg?branch=master)](https://travis-ci.org/RenatoGeh/gofaq)
[![GoDoc](https://godoc.org/github.com/RenatoGeh/gofaq?status.svg)](https://godoc.org/github.com/RenatoGeh/gofaq)Ever wondered how to make a proper FAQ? Well, now you can GoFAQ yourself
in an easy and satisfying way! Automatically generate all questions,
answers, their pages, tags and categories from a single `faq-script`,
letting you enjoy the FAQing like never before.The `faq-script` allows you to write your questions and answers in
Markdown so you don't have to go down and dirty with all the HTML tags.## Installation
With Go and Git:
```
go get -u github.com/RenatoGeh/gofaq
```Or import it:
```
import "github.com/RenatoGeh/gofaq"
```## Usage
```
Usage of ./gofaq:
-author string
The author's name. (default "Dog")
-desc string
A short description of the website. (default "Hi! This is Dog, and this is my dog-site!")
-footer string
Optional footer.
-lang string
Please refer to http://www.w3schools.com/tags/ref_language_codes.asp for more information. (default "en")
-url string
The base URL to be prepended to all URLs.
```See `main.go` to see how to use the code.
## Example
See `example.faq` for an example on `faq-script` syntax.
To compile the example, simply run `make`. See Makefile's recipe `test`
for an example on how to run GoFAQ.## Dependencies
GoFAQ uses:
- [BlackFriday's](https://github.com/russross/blackfriday) Markdown renderer.
- [GoSimple's](https://github.com/gosimple/slug) slugifier.## Todo
- "Beautify" pages.