Skip to content

jhawkins11/doc-genie

Repository files navigation


Logo

Doc Genie

Co-create extensive documentation with GPT.


View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Built With
  3. Installation
  4. Usage
  5. Roadmap
  6. Contributing
  7. Contact
  8. License
  9. Acknowledgments

About The Project

I wanted a way to utilize GPT's article generation and build out extensive documentation without having to endlessly prompt ChatGPT. The idea was to start with a high level topic and seamlessly generate a child article based on a subsection of the original article. This would create an intuitive way to quickly build out a document tree for the given topic.

As I developed the project, I decided to lean in to the co-creation aspect. I added the ability to prompt GPT directly to edit the article or generate an article on a specific subtopic not included in the parent article to build out the document tree exactly how they want it.

Ideally the next major feature would be the ability to link a code repo directly and generate high quality documentation from the source code.

(back to top)

Built With

(back to top)

Installation

The following steps will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js
  • npm
  • MongoDB
  • Firebase

Setup

  1. Clone the repo git clone https://github.com/jhawkins11/doc-genie.git

  2. Install dependencies npm install

  3. Create a .env.local file in the root directory

Environment Variables

In the .env.local file, add the following:

  • OPENAI_API_KEY - Get this from your OpenAI account
  • NEXT_PUBLIC_FIREBASE_API_KEY - Get this from your Firebase project settings
  • NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
  • NEXT_PUBLIC_FIREBASE_PROJECT_ID
  • NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET
  • NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID
  • NEXT_PUBLIC_FIREBASE_APP_ID
  • MONGODB_URI - Follow docs to get MongoDB connection string

Scripts

  • npm run dev - start dev server
  • npm run build - build for production

(back to top)

Usage

Doc Genie allows you to quickly generate extensive documentation using AI. Follow these steps to get started:

  1. Sign up and login.

  2. On the homepage, enter a high-level topic to generate the initial doc.

Doc Genie Screen Shot

  1. Review the generated parent doc. If needed, click "Edit with GPT" at the bottom of the doc to prompt GPT to edit the doc.

  2. Select a sub-section you want to expand on and click the lamp icon to generate a child doc. Alternatively, you can click the "+" icon to manually create a child doc for a custom child doc.

  3. The child doc will be added to the document tree. Repeat steps 4-5 to keep building out the tree.

Doc Genie Screen Shot 2

  1. Access your generated docs anytime by clicking the profile icon in the top right corner and selecting "My Docs".

Some key features:

  • Seamlessly generate a document tree with AI
  • Manually create docs with custom prompts
  • Edit generated docs with GPT
  • Access generated docs anytime from your profile

(back to top)

Roadmap

  • View all generated article trees
  • Edit/View mode
  • Manual article editing
  • Delete articles
  • Subscription model
  • Private articles
  • Export to markdown/pdf
  • Code repo integration

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request

(back to top)

Contact

Josiah Hawkins - LinkedIn - [email protected]

Project Link: https://github.com/jhawkins11/doc-genie

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Acknowledgments

About

Generate documentation with GPT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published