Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rabestro/gpt4-session-to-markdown
- Owner: rabestro
- License: mit
- Created: 2023-08-25T10:04:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-01T08:04:44.000Z (over 1 year ago)
- Last Synced: 2024-11-07T11:51:52.532Z (3 months ago)
- Topics: chatgpt-4, content-generation, converter, jekill-blog, jekyll, json-to-markdown, markdown, openai, shell-script
- Language: Shell
- Homepage: https://rabestro.github.io/gpt4-session-to-markdown/
- Size: 79.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: docs/README.md
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.