Giter Site home page Giter Site logo

bartfastiel / github-wiki-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from satttoshi/github-wiki-generator

0.0 0.0 0.0 465 KB

Give topics & subtopics and generate wiki articles in markdown language with your openai api key

License: MIT License

JavaScript 2.35% TypeScript 97.65%

github-wiki-generator's Introduction

Github Wiki Generator

This tool leverages the power of GPT-3.5 Turbo from OpenAI to generate Wiki articles for your GitHub repositories. It takes a main topic and a subtopic to generate an in-depth article in GitHub Markdown format.

Check out the examples within the Wiki of this repository!

image

Features

  • Generate Wiki articles based on main topic, subtopic and buzzwords
  • Edit and push directly into wiki
  • Select Prompt Styles, for different article styles and languages
  • Utilizes OpenAI's GPT-3.5 Turbo model for content generation
  • Requires OpenAI API Key ( paid for gpt-3.5-turbo )
  • Currently works only in a local environment
  • Easy to run with just a few steps

Getting Started

Add your OpenAI API key

Create an account at https://platform.openai.com/signup and obtain your API key.

Copy the .env.local.example file to .env.local:

cp .env.local.example .env.local

Open the .env.local file and add your OpenAI API key:

OPENAI_API_KEY=your_api_key_here

Configure your GitHub repository

Open the services/github/config.json file. You will see the following:

{
  "owner": "user-name",
  "repo": "repo-name",
  "ssh": true
}

Replace "user-name" with your GitHub username, "repo-name" with the name of your repository. The "ssh" field should be set to true if you're using SSH or false if you're using HTTPS for cloning the repository.

If you are using HTTPS you also need to configure the GITHUB_ACCESS_TOKEN

GH_ACCESS_TOKEN=your_access_token_here

Do not forget to:

npm i

Run the development server:

npm run dev

Note

Currently, this tool can only be run locally. We're continuously working on improvements, so stay tuned for updates.

Enjoy creating awesome Wiki articles for your projects with GitHub Wiki Generator!

github-wiki-generator's People

Contributors

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