quixio / LibraryToMKDocsReadmeMergeAction

Merge readme.md files from the Library to Docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Container Action Template

Quix Samples readme importer. Import readmes from the Quix Samples into MKdocs.

Usage

Use to add readme.md files from Quix Samples to MKDocs

Example workflow

    - name: Quix Samples readme importer
      uses: SteveRosam/QuixReadmeAction@Master
      with:
        LIBRARY_REPO_PATH: "samples"
        DOCS_PATH: ""
        REPLACEMENT_PLACEHOLDER: "#ConnectorsGetInsertedHere"
        README_DEST: "docs/library_readmes/connectors"

Inputs

LIBRARY_REPO_PATH: Path to where the samples is cloned to. e.g. 'samples' DOCS_PATH: Path to where docs is cloned to. Likley leave blank. REPLACEMENT_PLACEHOLDER: The placeholder that will be replaced with the newly generated nav e.g. "#ConnectorsGetInsertedHere" README_DEST: Where (in the docs structure) the readme files will be copied to e.g. "docs/library_readmes/connectors"

Outputs

Outputs an array of strings to the GITHUB_OUTPUT environment variable.

Use this code to log the output in your github action yaml file:

- name: Output Importer Logs
  run: |
	for i in ${{ steps.readme_importer.outputs.logs }}; do
	echo $i
	done

About

Merge readme.md files from the Library to Docs

License:Apache License 2.0


Languages

Language:Python 97.4%Language:Dockerfile 2.6%