Skip to content
This repository was archived by the owner on Nov 14, 2021. It is now read-only.

Commit 41f28c1

Browse files
committed
feat: Detach complex configs
1 parent 391036d commit 41f28c1

File tree

2 files changed

+3
-93
lines changed

2 files changed

+3
-93
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LABEL "maintainer"="Younho Choo <[email protected]>"
77

88
WORKDIR /usr/src/app
99

10-
COPY requirements.txt main.py ./
10+
COPY requirements.txt main.py narkdown.config.json ./
1111

1212
RUN pip install -r requirements.txt
1313

action.yml

Lines changed: 2 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -9,100 +9,10 @@ inputs:
99
description: URL of the notion database to extract.
1010
required: true
1111

12-
# export config
13-
docs-directory:
14-
description: Directory in which the notion page to extract will be stored.
15-
required: false
16-
recursive-export:
17-
description: Whether or not to recursively export child page.
18-
required: false
19-
default: true
20-
create-page-directory:
21-
description: Whether or not to create subdirectory with page title.
22-
required: false
23-
default: true
24-
add-metadata:
25-
description: Whether or not to add metadata to content.
26-
required: false
27-
default: false
28-
lower-pathname:
29-
description: Whether or not to make pathname to lowercase.
30-
required: false
31-
default: false
32-
lower-filename:
33-
description: Whether or not to make pathname to uppercase.
34-
required: false
35-
default: false
36-
line-break:
37-
description: Whether or not to convert empty blocks of notion to line break tag(<br />).
38-
required: false
39-
default: false
40-
41-
# database-config
42-
category-column-name:
43-
description: >
44-
In the Notion database, you can categorize content by category with "Select" property.
45-
If you create a "Select" property in the Notion database and pass the name of the column,
46-
then folders will be created by category.
47-
required: false
48-
tags-column-name:
49-
description: >
50-
In the Notion database, you can tag content with "Multi Select" property. (should set add_metadata to True.)
51-
If you create a "Multi Select" property in the Notion database and pass the name of the column,
52-
then meta data will be insterted to contents.
53-
required: false
54-
created-time-column-name:
55-
description: >
56-
In the Notion database, you can manage created time of content with "Created Time" property.
57-
If you create a "Created Time" property in the Notion database and pass the name of the column,
58-
you can add created time to filename.
59-
required: false
60-
status-column-name:
61-
description: >
62-
In the Notion database, you can manage the status of content with "Select" property.
63-
If you create a "Select" property in the Notion database and pass the name of the column,
64-
you can import contents in a specific state or change the status of the content.
65-
required: false
66-
current-status:
67-
description: Status of content to import. Must be an option in the "status_column_name" column.
68-
required: false
69-
next-status:
70-
description: Status of contents after content was imported. Must be an option in the "status_column_name" column.
71-
required: false
72-
filters:
73-
description: Key, value pair of filter list to apply to the Notion database.
74-
required: false
75-
7612
runs:
7713
using: "docker"
7814
image: "Dockerfile"
7915
args:
16+
- --url
8017
- ${{ inputs.database-url }}
81-
- --docs-directory
82-
- "${{ inputs.docs-directory }}"
83-
- --recursive-export
84-
- "${{ inputs.recursive-export }}"
85-
- --create-page-directory
86-
- "${{ inputs.create-page-directory }}"
87-
- --add-metadata
88-
- "${{ inputs.add-metadata }}"
89-
- --lower-pathname
90-
- "${{ inputs.lower-pathname }}"
91-
- --lower-filename
92-
- "${{ inputs.lower-filename }}"
93-
- --line-break
94-
- "${{ inputs.line-break }}"
95-
- --category-column-name
96-
- "${{ inputs.category-column-name }}"
97-
- --tags-column-name
98-
- "${{ inputs.tags-column-name }}"
99-
- --created-time-column-name
100-
- "${{ inputs.created-time-column-name }}"
101-
- --status-column-name
102-
- "${{ inputs.status-column-name }}"
103-
- --current-status
104-
- "${{ inputs.current-status }}"
105-
- --next-status
106-
- "${{ inputs.next-status }}"
107-
- --filters
108-
- "${{ inputs.filters }}"
18+
- --is-database

0 commit comments

Comments
 (0)