GithubHelp home page GithubHelp logo

tina-starter-alpaca-mirror's Introduction

Tina Starter Alpaca

A starting point for your documentation

โœจ Features

  • Full integration with TinaCMS

  • Edit and add new documentation pages

  • Fully customizable Navigation

    • Organized your documentation into groups and subgroups
    • Change order of or the navigation
  • Theme Customization

    • Colors
    • Fonts
    • Titles

๐Ÿ“ Getting started on localhost

  1. Clone the repo git clone https://github.com/tinacms/tina-starter-alpaca.git
  2. cd tina-starter-alpaca
  3. Set up a GitHub OAuth App
  4. Add a new file called .env with the credentials from your Github OAuth App
# OAuth App Credentials from GitHub
GITHUB_CLIENT_ID=************
GITHUB_CLIENT_SECRET=************
SIGNING_KEY=*********

# The path to your repository in GitHub
REPO_FULL_NAME=<GitHub Username>/<Repo Name>

# The base branch that new changes and forks are created from. Defaults to 'master'.
BASE_BRANCH=master

You can learn more about Open Authoring With Github in our guide

  1. Install dependencies and run the doc starter:
yarn install
yarn dev

or

npm install
npm run dev
  1. Your doc starter should be up and running on http://localhost:3000!

  2. If you want the search functionality to work, follow these steps

    1. Make an account at algolia
    2. add environment variables to env file (found it the dashboard under the api keys tab)
     ALGOLIA_APP_ID=***
     ALGOLIA_API_KEY=***
     ALGOLIA_ADMIN_KEY=***
    
    1. run yarn create-indices (this command will have to be run every time you wish to update the indices)
    2. Complete the setup for each index (located on the right side panel)
      1. Configure searchable attributes (must add excerpt)
      2. Configure custom ranking (must add excerpt)
    3. Test and see the search is now working

Deploy on Vercel

Gathering Feedback with Github

People can submit feedback from any documentation page. This feedback is immediately posted to GitHub and stored as issues to the repository of your choosing. GitHub issues are an awesome way to store feeback, make it searchable, filterable on page URL or reaction types for instance, and you can choose to be notified of any new comment on your website ๐Ÿ””.

Setup

  1. Make a personal GitHub access token ๐Ÿ‘ˆ This is the GitHub user that posts any new feedback. Feel free to create a dedicated GitHub account for this.
  2. Add the following environement variables:
USERNAME_ISSUES=<GitHub username>
GITHUB_ACCESS_TOKEN=<personal access token>
REPO_ISSUES=<repository-name> 

Make sure issues are activated in the repository settings.

  1. Run NextJS in development mode to test:
yarn
yarn dev
  1. Submit a feedback from the form at the bottom of a documenation page on your site.
  2. ๐Ÿ‘€ Check your GitHub repository if an issue has been created.

Gathering Feedback with another endpoint

If you want to use another service (like Formspree) you can change the endpoint that the form is send to. Simple add the following line to your .env file

FEEDBACK_ENDPOINT=https://example.com

๐Ÿ”— Hosting

Deploy with Vercel

:octocat: Issues

If you notice any bugs or have any problems please report them here

tina-starter-alpaca-mirror's People

Contributors

logan-anderson avatar nephlin7 avatar dirtyf avatar b-pmcg avatar liamklyneker avatar jamespohalloran avatar thomkrupa avatar dependabot[bot] avatar mitchmac avatar

Watchers

James Cloos 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.