Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rabestro/gpt4-session-to-markdown

ChatGPT-4 to Jekyll Markdown: Command-line tool with JQ, converting ChatGPT-4 JSON sessions to Jekyll markdown posts. Simplify site updates and content generation.
https://github.com/rabestro/gpt4-session-to-markdown

chatgpt-4 content-generation converter jekill-blog jekyll json-to-markdown markdown openai shell-script

Last synced: about 1 month ago
JSON representation

ChatGPT-4 to Jekyll Markdown: Command-line tool with JQ, converting ChatGPT-4 JSON sessions to Jekyll markdown posts. Simplify site updates and content generation.

Awesome Lists containing this project

README

        

# GPT-4 Session to Markdown

This script converts GPT-4 chat session JSON data to markdown format and adds YAML front matter to the top of the file to prepare it for publishing on a Jekyll site.

## Requirements

- [jq](https://stedolan.github.io/jq/) - A lightweight and flexible command-line JSON processor.

## Usage

1. Clone the repository:
```shell
git clone https://github.com/rabestro/gpt4-session-to-markdown.git
cd gpt4-session-to-markdown
```

2. Make the script executable:
```shell
chmod +x post
```

3. Run the script with the JSON file as an argument:
```shell
./post
```
Replace `` with the path to your GPT-4 chat session JSON file.

## Configuration

You can customize the script by modifying the following variables at the beginning of the `post` script:

- `POSTS_DIR`: The directory where the generated markdown files will be saved. Default is `../_posts`.
- `TIMEZONE`: The timezone to be used in the YAML front matter. Default is `+0300`.
- `CATEGORIES`: The categories to be used in the YAML front matter. Default is `AI`.
- `TAGS`: The tags to be used in the YAML front matter. Default is `ai`.

## Showcases

- [My Tech Blog](https://rabestro.github.io/) - My personal tech blog where I publish my GPT-4 chat sessions.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.