Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add the first tutorial on writing plugins to readme docs directory #17930

Conversation

AlexTereshenkov
Copy link
Member

@AlexTereshenkov AlexTereshenkov commented Jan 5, 2023

Benjy has created a page for me in readme.com. This PR moves the file I had in markdown to this very page.

@@ -1,9 +1,399 @@
---
title: "Create a new goal"
slug: "create-a-new-goal"
hidden: True
excerpt: "Getting started writing plugins for Pants by creating a new goal."
hidden: false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made it visible, I believe this is what we want to do now that I've got the content?

@@ -1,9 +1,399 @@
---
title: "Create a new goal"
slug: "create-a-new-goal"
hidden: True
excerpt: "Getting started writing plugins for Pants by creating a new goal."
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added an excerpt; assuming it's something that can come from the .md file and doesn't have to exist in the readme.com beforehand.

createdAt: "2022-02-07T05:44:28.620Z"
updatedAt: "2022-02-07T05:44:28.620Z"
---
In this tutorial, you'll learn the basics needed to get started writing a plugin. You will create a new goal, `project-version`, which will tell you the version (retrieved from the `VERSION` text file) of a particular project in your monorepository. You will learn how to create a new custom target to refer to the `VERSION` file, how to author a new goal, and, most importantly, how to connect rules and targets.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest is copy/paste from the original file that is now removed. Only updated the headers from ## to ### as I can see the readme.com has fairly large font for header 2.

@AlexTereshenkov AlexTereshenkov marked this pull request as ready for review January 5, 2023 21:51
@AlexTereshenkov AlexTereshenkov merged commit 7f00df2 into pantsbuild:main Jan 6, 2023
cczona pushed a commit to cczona/pants that referenced this pull request Jan 9, 2023
…ory (pantsbuild#17930)

Add the first tutorial on writing plugins to readme docs directory
@AlexTereshenkov AlexTereshenkov added this to the 2.15.x milestone Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants