-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from kurtmckee/release-0.5.0
Release 0.5.0
- Loading branch information
Showing
27 changed files
with
255 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[chipshot] | ||
template = """ | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-{{ year }} Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
""" | ||
|
||
exclusions = [ | ||
"docs/conf.py", | ||
"docs/_static/custom.css", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../CHANGELOG.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
Colophon | ||
######## | ||
|
||
The Chipshot logo builds on others' work. | ||
|
||
* The soccer ball in the logo is `Emoji 26BD`_ | ||
and is designed by `OpenMoji`_, the open-source emoji and icon project. | ||
|
||
License: `CC BY-SA 4.0`_ | ||
|
||
* The word "Chipshot" in the logo uses the `Julius Sans One`_ font, | ||
principally designed by Luciano Vergara, | ||
and is from the type foundry `LatinoType`_. | ||
|
||
License: `SIL Open Font License, version 1.1`_ | ||
|
||
* The phrase "Set up game-winning headers!" in the logo uses the `Noto Serif`_ font, | ||
designed by the `Noto Project`_. | ||
|
||
License: `SIL Open Font License, version 1.1 <Noto Serif License_>`_ | ||
|
||
* The soccer ball and text were pieced together using `Inkscape`_. | ||
|
||
License: `GNU GPL, version 2`_ | ||
|
||
|
||
|
||
.. Links | ||
.. ----- | ||
.. | ||
.. _Emoji 26BD: https://openmoji.org/library/emoji-26BD/ | ||
.. _OpenMoji: https://openmoji.org/ | ||
.. _CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/ | ||
.. _Julius Sans One: https://fonts.google.com/specimen/Julius+Sans+One | ||
.. _LatinoType: https://www.latinotype.com/ | ||
.. _SIL Open Font License, version 1.1: https://openfontlicense.org/open-font-license-official-text/ | ||
.. _Noto Serif: https://fonts.google.com/noto/specimen/Noto+Serif | ||
.. _Noto Project: https://github.com/notofonts/latin-greek-cyrillic | ||
.. _Noto Serif License: https://github.com/notofonts/latin-greek-cyrillic/blob/4bc63d7ebca1faed49c6c685f380ba0abc2c1941/OFL.txt | ||
.. _Inkscape: https://inkscape.org/ | ||
.. _GNU GPL, version 2: https://inkscape.org/about/license/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
How To Create Custom Headers | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
How To Create a Custom Style | ||
############################ | ||
|
||
Chipshot supports a wide variety of header styles | ||
|
@@ -68,7 +73,7 @@ Then, configure files with the "php" extension to use the new style. | |
|
||
.. code-block:: toml | ||
[chipshot.extension.php] | ||
[chipshot.extensions.php] | ||
style = "my-php-style" | ||
Here's the complete ``.chipshot.toml`` file, including a template: | ||
|
@@ -79,13 +84,14 @@ Here's the complete ``.chipshot.toml`` file, including a template: | |
template = """ | ||
Copyright 2022-{{ year }} Company Name | ||
Licensed under the terms of the MIT License. | ||
""" | ||
[chipshot.styles.my-php-style] | ||
block_prefix = "<?php\n/*\n" | ||
line_prefix = " * " | ||
block_suffix = "\n */\n?>" | ||
[chipshot.extension.php] | ||
[chipshot.extensions.php] | ||
style = "my-php-style" | ||
Run Chipshot with the ``--update`` flag and pass it a PHP file to update. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
How To Exclude Specific Files | ||
############################# | ||
|
||
In some circumstances, you may want to exclude certain files. | ||
For example, some tools use configuration files written in Python or Ruby, | ||
and as configuration files you may not want to standardize their headers. | ||
|
||
Chipshot supports a global ``"exclusions"`` configuration option. | ||
It supports a list of files that Chipshot must ignore. | ||
|
||
The example below will tell Chipshot to exclude ``conf.py``, | ||
which is the standard name for a Sphinx configuration file; | ||
it will also ignore ``Gruntfile.js``, | ||
which is a common name for a Grunt configuration file. | ||
|
||
.. code-block:: toml | ||
[chipshot] | ||
exclusions = [ | ||
"docs/conf.py", | ||
"Gruntfile.js", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
.. rst-class:: visually-hidden | ||
|
||
Welcome to the Chipshot documentation | ||
|
@@ -64,9 +69,8 @@ How-To Guides | |
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
how-to/custom-headers | ||
|
||
* How to integrate Chipshot in your everyday development | ||
how-to/custom-style | ||
how-to/exclusions | ||
|
||
|
||
Reference | ||
|
@@ -76,6 +80,9 @@ Reference | |
:maxdepth: 1 | ||
|
||
reference/boms | ||
changelog | ||
license | ||
colophon | ||
|
||
* Configuration file format | ||
* Pre-commit hooks | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
License | ||
####### | ||
|
||
.. include:: ../LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
Byte Order Marks (BOMs) | ||
####################### | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
Configuring Chipshot | ||
#################### | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
Installing Chipshot | ||
################### | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.. | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-2023 Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
An overview of Chipshot's features | ||
################################## | ||
|
||
|
@@ -146,7 +151,7 @@ so it's possible to add new styles as needed. | |
.. rubric:: Example: A custom style in ``.chipshot.toml`` for PHP scripts | ||
.. code-block:: toml | ||
[chipshot.extension.php] | ||
[chipshot.extensions.php] | ||
block_prefix = "<?php\n" | ||
line_prefix = "// " | ||
block_suffix = "\n?>" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "chipshot" | ||
version = "0.4.0" | ||
version = "0.5.0" | ||
description = "Set up game-winning headers!" | ||
readme = "README.rst" | ||
authors = ["Kurt McKee <[email protected]>"] | ||
|
@@ -38,17 +38,6 @@ sphinx = { version = "*", python = "3.12" } | |
chipshot = "chipshot.cli:run" | ||
|
||
|
||
# Chipshot | ||
# -------- | ||
|
||
[tool.chipshot] | ||
template = """ | ||
This file is a part of Chipshot <https://github.com/kurtmckee/chipshot> | ||
Copyright 2022-{{ year }} Kurt McKee <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
""" | ||
|
||
|
||
# Coverage | ||
# -------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.