Skip to content

Commit

Permalink
Update doc path (#2931)
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Feb 23, 2023
1 parent 06e6e28 commit c69d021
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include samtranslator/policy_templates_data/policy_templates.json
include samtranslator/policy_templates_data/schema.json
include samtranslator/model/connector_profiles/profiles.json
include samtranslator/internal/data/aws_managed_policies.json
include samtranslator/internal/schema_source/sam-docs.json
include README.md
include THIRD_PARTY_LICENSES

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fetch-schema-data:

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

# Add CloudFormation docs to CloudFormation schema
Expand Down
5 changes: 2 additions & 3 deletions samtranslator/internal/schema_source/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ class PassThroughProp(pydantic.BaseModel):

LenientBaseModel = pydantic.BaseModel

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


def get_prop(stem: str) -> Any:
Expand Down
File renamed without changes.

0 comments on commit c69d021

Please sign in to comment.