@yeongjaeyou/claude-code-config 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/ask-codex.md +131 -345
- package/.claude/commands/ask-deepwiki.md +15 -15
- package/.claude/commands/ask-gemini.md +134 -352
- package/.claude/commands/code-review.md +41 -40
- package/.claude/commands/commit-and-push.md +35 -36
- package/.claude/commands/council.md +318 -0
- package/.claude/commands/edit-notebook.md +34 -33
- package/.claude/commands/gh/create-issue-label.md +19 -17
- package/.claude/commands/gh/decompose-issue.md +66 -65
- package/.claude/commands/gh/init-project.md +46 -52
- package/.claude/commands/gh/post-merge.md +74 -79
- package/.claude/commands/gh/resolve-issue.md +38 -46
- package/.claude/commands/plan.md +15 -14
- package/.claude/commands/tm/convert-prd.md +53 -53
- package/.claude/commands/tm/post-merge.md +92 -112
- package/.claude/commands/tm/resolve-issue.md +148 -154
- package/.claude/commands/tm/review-prd-with-codex.md +272 -279
- package/.claude/commands/tm/sync-to-github.md +189 -212
- package/.claude/guidelines/cv-guidelines.md +30 -0
- package/.claude/guidelines/id-reference.md +34 -0
- package/.claude/guidelines/work-guidelines.md +17 -0
- package/.claude/skills/notion-md-uploader/SKILL.md +252 -0
- package/.claude/skills/notion-md-uploader/references/notion_block_types.md +323 -0
- package/.claude/skills/notion-md-uploader/references/setup_guide.md +156 -0
- package/.claude/skills/notion-md-uploader/scripts/__pycache__/markdown_parser.cpython-311.pyc +0 -0
- package/.claude/skills/notion-md-uploader/scripts/__pycache__/notion_client.cpython-311.pyc +0 -0
- package/.claude/skills/notion-md-uploader/scripts/__pycache__/notion_converter.cpython-311.pyc +0 -0
- package/.claude/skills/notion-md-uploader/scripts/markdown_parser.py +607 -0
- package/.claude/skills/notion-md-uploader/scripts/notion_client.py +337 -0
- package/.claude/skills/notion-md-uploader/scripts/notion_converter.py +477 -0
- package/.claude/skills/notion-md-uploader/scripts/upload_md.py +298 -0
- package/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/.claude/skills/skill-creator/SKILL.md +209 -0
- package/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/.claude/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/README.md +159 -129
- package/package.json +1 -1
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Markdown to Notion Uploader.
|
|
4
|
+
|
|
5
|
+
Main script for uploading Markdown files to Notion pages.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
python upload_md.py <md_file> --parent-page-id <page_id> [options]
|
|
9
|
+
|
|
10
|
+
Examples:
|
|
11
|
+
python upload_md.py README.md --parent-page-id abc123
|
|
12
|
+
python upload_md.py docs/report.md --parent-page-id abc123 --title "Custom Title"
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import argparse
|
|
16
|
+
import os
|
|
17
|
+
import sys
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
from typing import Any
|
|
20
|
+
|
|
21
|
+
# Add scripts directory to path for imports
|
|
22
|
+
sys.path.insert(0, str(Path(__file__).parent))
|
|
23
|
+
|
|
24
|
+
from markdown_parser import MarkdownParser
|
|
25
|
+
from notion_client import NotionClient, NotionAPIError, NotionConfig
|
|
26
|
+
from notion_converter import NotionBlockConverter
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class MarkdownToNotionUploader:
|
|
30
|
+
"""Uploads Markdown files to Notion pages."""
|
|
31
|
+
|
|
32
|
+
def __init__(self, notion_client: NotionClient | None = None):
|
|
33
|
+
"""Initialize the uploader.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
notion_client: NotionClient instance. If None, creates from env.
|
|
37
|
+
"""
|
|
38
|
+
self.client = notion_client or NotionClient()
|
|
39
|
+
self._uploaded_images: dict[str, str] = {} # path -> file_upload_id
|
|
40
|
+
|
|
41
|
+
def upload_image(self, image_path: str) -> str:
|
|
42
|
+
"""Upload an image to Notion.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
image_path: Path to the image file
|
|
46
|
+
|
|
47
|
+
Returns:
|
|
48
|
+
File upload ID
|
|
49
|
+
|
|
50
|
+
Raises:
|
|
51
|
+
FileNotFoundError: If image file doesn't exist
|
|
52
|
+
"""
|
|
53
|
+
# Check cache first
|
|
54
|
+
if image_path in self._uploaded_images:
|
|
55
|
+
return self._uploaded_images[image_path]
|
|
56
|
+
|
|
57
|
+
file_upload_id = self.client.upload_file(image_path)
|
|
58
|
+
self._uploaded_images[image_path] = file_upload_id
|
|
59
|
+
return file_upload_id
|
|
60
|
+
|
|
61
|
+
def upload_markdown(
|
|
62
|
+
self,
|
|
63
|
+
md_file: str | Path,
|
|
64
|
+
parent_page_id: str,
|
|
65
|
+
title: str | None = None,
|
|
66
|
+
) -> dict[str, Any]:
|
|
67
|
+
"""Upload a Markdown file to Notion.
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
md_file: Path to the Markdown file
|
|
71
|
+
parent_page_id: ID of the parent Notion page
|
|
72
|
+
title: Optional custom title (defaults to filename)
|
|
73
|
+
|
|
74
|
+
Returns:
|
|
75
|
+
Created page object from Notion API
|
|
76
|
+
|
|
77
|
+
Raises:
|
|
78
|
+
FileNotFoundError: If Markdown file doesn't exist
|
|
79
|
+
NotionAPIError: If Notion API returns an error
|
|
80
|
+
"""
|
|
81
|
+
md_path = Path(md_file)
|
|
82
|
+
if not md_path.exists():
|
|
83
|
+
raise FileNotFoundError(f"Markdown file not found: {md_file}")
|
|
84
|
+
|
|
85
|
+
# Read Markdown content
|
|
86
|
+
content = md_path.read_text(encoding="utf-8")
|
|
87
|
+
|
|
88
|
+
# Determine title
|
|
89
|
+
if not title:
|
|
90
|
+
# Try to extract from first heading
|
|
91
|
+
for line in content.split("\n"):
|
|
92
|
+
line = line.strip()
|
|
93
|
+
if line.startswith("# "):
|
|
94
|
+
title = line[2:].strip()
|
|
95
|
+
break
|
|
96
|
+
if not title:
|
|
97
|
+
title = md_path.stem # Use filename without extension
|
|
98
|
+
|
|
99
|
+
# Parse Markdown
|
|
100
|
+
parser = MarkdownParser(base_path=str(md_path.parent))
|
|
101
|
+
blocks = parser.parse(content)
|
|
102
|
+
|
|
103
|
+
# Convert to Notion blocks with image upload support
|
|
104
|
+
converter = NotionBlockConverter(
|
|
105
|
+
image_uploader=self.upload_image,
|
|
106
|
+
base_path=str(md_path.parent),
|
|
107
|
+
)
|
|
108
|
+
notion_blocks = converter.convert_blocks(blocks)
|
|
109
|
+
|
|
110
|
+
# Create page with initial blocks (Notion limit: 100 blocks per request)
|
|
111
|
+
initial_blocks = notion_blocks[:100]
|
|
112
|
+
remaining_blocks = notion_blocks[100:]
|
|
113
|
+
|
|
114
|
+
page = self.client.create_page(
|
|
115
|
+
parent_page_id=parent_page_id,
|
|
116
|
+
title=title,
|
|
117
|
+
children=initial_blocks,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
# Append remaining blocks if any
|
|
121
|
+
if remaining_blocks:
|
|
122
|
+
page_id = page["id"]
|
|
123
|
+
self.client.append_blocks_chunked(page_id, remaining_blocks)
|
|
124
|
+
|
|
125
|
+
return page
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def extract_page_id(page_id_or_url: str) -> str:
|
|
129
|
+
"""Extract page ID from URL or return as-is if already an ID.
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
page_id_or_url: Notion page ID or URL
|
|
133
|
+
|
|
134
|
+
Returns:
|
|
135
|
+
Clean page ID (32 chars with hyphens)
|
|
136
|
+
"""
|
|
137
|
+
# If it's a URL, extract the ID
|
|
138
|
+
if "notion.so" in page_id_or_url or "notion.site" in page_id_or_url:
|
|
139
|
+
# URL format: https://www.notion.so/pagename-32charID
|
|
140
|
+
# or https://www.notion.so/workspace/32charID
|
|
141
|
+
parts = page_id_or_url.rstrip("/").split("/")
|
|
142
|
+
last_part = parts[-1]
|
|
143
|
+
|
|
144
|
+
# Handle query params
|
|
145
|
+
if "?" in last_part:
|
|
146
|
+
last_part = last_part.split("?")[0]
|
|
147
|
+
|
|
148
|
+
# The ID is the last 32 characters (may have hyphens)
|
|
149
|
+
if "-" in last_part:
|
|
150
|
+
# Take the last segment after the final hyphen if it looks like an ID
|
|
151
|
+
segments = last_part.rsplit("-", 1)
|
|
152
|
+
if len(segments[-1]) == 32:
|
|
153
|
+
page_id = segments[-1]
|
|
154
|
+
else:
|
|
155
|
+
page_id = last_part.replace("-", "")[-32:]
|
|
156
|
+
else:
|
|
157
|
+
page_id = last_part[-32:]
|
|
158
|
+
else:
|
|
159
|
+
page_id = page_id_or_url.replace("-", "")
|
|
160
|
+
|
|
161
|
+
# Format as UUID with hyphens: 8-4-4-4-12
|
|
162
|
+
if len(page_id) == 32:
|
|
163
|
+
return f"{page_id[:8]}-{page_id[8:12]}-{page_id[12:16]}-{page_id[16:20]}-{page_id[20:]}"
|
|
164
|
+
|
|
165
|
+
return page_id_or_url # Return as-is if can't parse
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def main():
|
|
169
|
+
"""Main entry point."""
|
|
170
|
+
parser = argparse.ArgumentParser(
|
|
171
|
+
description="Upload Markdown files to Notion",
|
|
172
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
173
|
+
epilog="""
|
|
174
|
+
Examples:
|
|
175
|
+
python upload_md.py README.md --parent-page-id abc123
|
|
176
|
+
python upload_md.py docs/report.md --parent-page-id "https://notion.so/page-abc123"
|
|
177
|
+
python upload_md.py report.md --parent-page-id abc123 --title "My Report"
|
|
178
|
+
|
|
179
|
+
Environment Variables:
|
|
180
|
+
NOTION_API_KEY Required. Your Notion integration API key.
|
|
181
|
+
|
|
182
|
+
Setup:
|
|
183
|
+
1. Create a Notion integration at https://www.notion.so/my-integrations
|
|
184
|
+
2. Copy the API key and set it as NOTION_API_KEY
|
|
185
|
+
3. Share the parent page with your integration
|
|
186
|
+
""",
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
parser.add_argument(
|
|
190
|
+
"md_file",
|
|
191
|
+
type=str,
|
|
192
|
+
help="Path to the Markdown file to upload",
|
|
193
|
+
)
|
|
194
|
+
parser.add_argument(
|
|
195
|
+
"--parent-page-id",
|
|
196
|
+
"-p",
|
|
197
|
+
type=str,
|
|
198
|
+
required=True,
|
|
199
|
+
help="Notion parent page ID or URL",
|
|
200
|
+
)
|
|
201
|
+
parser.add_argument(
|
|
202
|
+
"--title",
|
|
203
|
+
"-t",
|
|
204
|
+
type=str,
|
|
205
|
+
default=None,
|
|
206
|
+
help="Custom page title (defaults to first heading or filename)",
|
|
207
|
+
)
|
|
208
|
+
parser.add_argument(
|
|
209
|
+
"--dry-run",
|
|
210
|
+
action="store_true",
|
|
211
|
+
help="Parse and convert without uploading",
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
args = parser.parse_args()
|
|
215
|
+
|
|
216
|
+
# Check API key
|
|
217
|
+
if not os.getenv("NOTION_API_KEY"):
|
|
218
|
+
print("Error: NOTION_API_KEY environment variable is not set")
|
|
219
|
+
print("\nTo set it:")
|
|
220
|
+
print(" export NOTION_API_KEY=your_api_key_here")
|
|
221
|
+
print("\nOr create a .env file with:")
|
|
222
|
+
print(" NOTION_API_KEY=your_api_key_here")
|
|
223
|
+
sys.exit(1)
|
|
224
|
+
|
|
225
|
+
# Validate file exists
|
|
226
|
+
md_path = Path(args.md_file)
|
|
227
|
+
if not md_path.exists():
|
|
228
|
+
print(f"Error: File not found: {args.md_file}")
|
|
229
|
+
sys.exit(1)
|
|
230
|
+
|
|
231
|
+
# Extract clean page ID
|
|
232
|
+
parent_page_id = extract_page_id(args.parent_page_id)
|
|
233
|
+
|
|
234
|
+
if args.dry_run:
|
|
235
|
+
# Dry run mode
|
|
236
|
+
print(f"Parsing: {args.md_file}")
|
|
237
|
+
content = md_path.read_text(encoding="utf-8")
|
|
238
|
+
|
|
239
|
+
parser = MarkdownParser(base_path=str(md_path.parent))
|
|
240
|
+
blocks = parser.parse(content)
|
|
241
|
+
|
|
242
|
+
print(f"Found {len(blocks)} blocks:")
|
|
243
|
+
for i, block in enumerate(blocks[:10]):
|
|
244
|
+
content_preview = ""
|
|
245
|
+
if isinstance(block.content, str):
|
|
246
|
+
content_preview = block.content[:50]
|
|
247
|
+
elif isinstance(block.content, list) and block.content:
|
|
248
|
+
content_preview = block.content[0].text[:50] if block.content[0].text else ""
|
|
249
|
+
print(f" {i+1}. {block.block_type.name}: {content_preview}...")
|
|
250
|
+
|
|
251
|
+
if len(blocks) > 10:
|
|
252
|
+
print(f" ... and {len(blocks) - 10} more blocks")
|
|
253
|
+
|
|
254
|
+
converter = NotionBlockConverter(base_path=str(md_path.parent))
|
|
255
|
+
notion_blocks = converter.convert_blocks(blocks)
|
|
256
|
+
print(f"\nConverted to {len(notion_blocks)} Notion blocks")
|
|
257
|
+
|
|
258
|
+
print("\nDry run complete. Use without --dry-run to upload.")
|
|
259
|
+
return
|
|
260
|
+
|
|
261
|
+
# Upload
|
|
262
|
+
try:
|
|
263
|
+
print(f"Uploading: {args.md_file}")
|
|
264
|
+
print(f"Parent page: {parent_page_id}")
|
|
265
|
+
|
|
266
|
+
uploader = MarkdownToNotionUploader()
|
|
267
|
+
page = uploader.upload_markdown(
|
|
268
|
+
md_file=args.md_file,
|
|
269
|
+
parent_page_id=parent_page_id,
|
|
270
|
+
title=args.title,
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
page_url = page.get("url", "")
|
|
274
|
+
page_id = page.get("id", "")
|
|
275
|
+
|
|
276
|
+
print(f"\nSuccess!")
|
|
277
|
+
print(f"Page ID: {page_id}")
|
|
278
|
+
print(f"URL: {page_url}")
|
|
279
|
+
|
|
280
|
+
except NotionAPIError as e:
|
|
281
|
+
print(f"\nNotion API Error: {e}")
|
|
282
|
+
if "Could not find page" in str(e.response_body):
|
|
283
|
+
print("\nHint: Make sure the parent page is shared with your integration.")
|
|
284
|
+
print("1. Open the parent page in Notion")
|
|
285
|
+
print("2. Click '...' in the top right")
|
|
286
|
+
print("3. Click 'Add connections'")
|
|
287
|
+
print("4. Select your integration")
|
|
288
|
+
sys.exit(1)
|
|
289
|
+
except FileNotFoundError as e:
|
|
290
|
+
print(f"\nFile Error: {e}")
|
|
291
|
+
sys.exit(1)
|
|
292
|
+
except Exception as e:
|
|
293
|
+
print(f"\nUnexpected Error: {e}")
|
|
294
|
+
raise
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
if __name__ == "__main__":
|
|
298
|
+
main()
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|