{"repo":"AnandChowdhary/docs-markdown","free":true,"listed":false,"github":"https://github.com/AnandChowdhary/docs-markdown","clone":"git clone https://github.com/AnandChowdhary/docs-markdown.git","description":"📝 Convert a Google Docs file (API response) to Markdown","language":"TypeScript","stars":68,"topics":["google","google-drive","google-docs","markdown","typescript","nodejs"],"license":"MIT","category":"docs-static-sites","readme_excerpt":"📝 Docs Markdown Convert a Google Docs file (API response) to Markdown 💡 Usage Install the package from npm: API The fetchGoogleDocsFiles helper can download a document from Google Docs and save it as a markdown file: You can also use the googleDocsToMarkdown function to manually convert documents: CLI Fetch files and save them as markdown: Authentication The following environment variables are required to fetch files from Google Docs. They are not required when converting JSON documents to markdown: - GOOGLE DOCS CLIENT ID - GOOGLE DOCS CLIENT SECRET - GOOGLE DOCS ACCESS - GOOGLE DOCS REFRESH To learn how to create a client ID and secret, read the article Using OAuth 2.0 to Access Google APIs. Once you've created them, create an access token and a refresh token, use the OAuth 2.0 Playground with your client ID and secret. ⭐️ Features - [x] Paragraphs - [x] Headings, titles, subtitles - [x] Bold, italic - [x] Lists - [x] Links - [ ] Images - [x] Tables - [ ] Header, footer 🍳 Recipes GitHub Actions + Google Docs CI If you want to sync your Google Docs documents as markdown files to a GitHub repository, you can use this GitHub Actions workflow that runs every day, fetches your documents, and commit them to your repo. Make sure you have all the required environment variables stored as GitHub Secrets: 👩‍💻 Development Build TypeScript: 📄 License MIT © Anand Chowdhary","default_branch":null,"files":null,"tree":[],"storefront":"/r/AnandChowdhary","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AnandChowdhary/docs-markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}