Skip to content

Commit c69d021

Browse files
authored
Update doc path (#2931)
1 parent 06e6e28 commit c69d021

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ include samtranslator/policy_templates_data/policy_templates.json
99
include samtranslator/policy_templates_data/schema.json
1010
include samtranslator/model/connector_profiles/profiles.json
1111
include samtranslator/internal/data/aws_managed_policies.json
12+
include samtranslator/internal/schema_source/sam-docs.json
1213
include README.md
1314
include THIRD_PARTY_LICENSES
1415

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fetch-schema-data:
6060

6161
update-schema-data:
6262
# Parse docs
63-
bin/parse_docs.py .tmp/aws-sam-developer-guide/doc_source > schema_source/docs.json
63+
bin/parse_docs.py .tmp/aws-sam-developer-guide/doc_source > samtranslator/internal/schema_source/sam-docs.json
6464
bin/parse_docs.py --cfn .tmp/aws-cloudformation-user-guide/doc_source > schema_source/cloudformation-docs.json
6565

6666
# Add CloudFormation docs to CloudFormation schema

samtranslator/internal/schema_source/common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ class PassThroughProp(pydantic.BaseModel):
3232

3333
LenientBaseModel = pydantic.BaseModel
3434

35-
_packagedir = os.path.dirname(os.path.abspath(__package__))
36-
_docdir = os.path.join(_packagedir, "schema_source")
37-
_DOCS = json.loads(Path(_docdir, "docs.json").read_bytes())
35+
_docdir = os.path.dirname(os.path.abspath(__file__))
36+
_DOCS = json.loads(Path(_docdir, "sam-docs.json").read_bytes())
3837

3938

4039
def get_prop(stem: str) -> Any:

0 commit comments

Comments
 (0)