-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
This page describes how to convert notes from Google Docs to Markdown. | ||
|
||
## General Information | ||
|
||
- [Website](https://docs.google.com/) | ||
- Typical extensions: `.zip`, `.tgz` | ||
|
||
## Instructions | ||
|
||
1. Export via [Google Takeout](https://takeout.google.com) | ||
1. Select "Drive" | ||
2. Select the folders you want to export | ||
2. [Install jimmy](../index.md#installation) | ||
3. Convert to Markdown. Example: `jimmy-cli-linux takeout-20240401T160556Z-001.zip --format google_docs` | ||
4. [Import to your app](../import_instructions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Convert Google Docs documents to the intermediate format.""" | ||
|
||
from pathlib import Path | ||
|
||
import common | ||
import converter | ||
from converter import DefaultConverter | ||
|
||
|
||
class Converter(converter.BaseConverter): | ||
accepted_extensions = [".tgz", ".zip"] | ||
|
||
def prepare_input(self, input_: Path) -> Path: | ||
return common.extract_zip(input_) | ||
|
||
def convert(self, file_or_folder: Path): | ||
self.root_path = self.prepare_input(file_or_folder) | ||
|
||
# see BaseConverter.convert_multiple() | ||
docs_converter = DefaultConverter(self.format, self.output_folder) | ||
docs_converter.root_notebook = self.root_notebook | ||
docs_converter.convert(self.root_path / "Takeout/Drive") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule data
updated
5 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters