Skip to content

Commit

Permalink
Merge pull request #460 from cweagans/docs-2
Browse files Browse the repository at this point in the history
Add some docs
  • Loading branch information
cweagans authored Feb 10, 2023
2 parents 1248156 + 5c4de34 commit f9b1973
Show file tree
Hide file tree
Showing 30 changed files with 364 additions and 194 deletions.
1 change: 0 additions & 1 deletion docs/.htaccess

This file was deleted.

51 changes: 28 additions & 23 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,33 @@ description: A simple plugin for Composer that allows you to apply patches to yo
layout: projecthome
github: https://github.com/cweagans/composer-patches
buttons:
- title: "View on Github"
href: https://github.com/cweagans/composer-patches
style: blue
- title: "Project updates"
href: https://www.cweagans.net/projects/composer-patches
style: blue

- title: "View on Github"
href: https://github.com/cweagans/composer-patches
style: blue
- title: "Project updates"
href: https://www.cweagans.net/projects/composer-patches
style: blue

quicklinks:
- title: "Getting started"
icon: installation
description: "Step-by-step guides to installing the plugin and basic usage."
href: #
- title: "Usage & Configuration"
icon: plugins
description: "Advanced usage information for users with complex workflows."
href: #
- title: "Development"
icon: architecture
description: "Interact with the plugin programmatically for specialized use-cases."
href: #
- title: "Contributing"
icon: themes
description: "Contribute to development and keep the project alive and healthy."
href: #

- title: "Installation"
icon: installation
description: "Get up-and-running with Composer Patches in your project"
href: /composer-patches/getting-started/installation
- title: "Workflow"
icon: plugins
description: "Learn how to use Composer Patches with a group of engineers."
href: /composer-patches/usage/workflow
- title: "Troubleshooting"
icon: architecture
description: "Figure out how to solve any problems that you run into."
href: /composer-patches/troubleshooting/guide
- title: "Contributing"
icon: themes
description: "Contribute to development and keep the project alive and healthy."
href: /composer-patches/project/contributing

---

{{< quicklinks >}}
Expand All @@ -36,5 +40,6 @@ All documentation for the current, produciton-ready version of the plugin is in
{{< /warning >}}

{{< warning title="This guide is still under construction" >}}
All of the documentation for 1.x versions of the plugin was in the readme. For 2.x, I want a more developed set of documentation that gives people as much information as they need. I'm still writing here, so expect some rough edges.
All of the documentation for 1.x versions of the plugin was in the readme. For 2.x, I want a more developed set of
documentation that gives people as much information as they need. I'm still writing here, so expect some rough edges.
{{< /warning >}}
4 changes: 4 additions & 0 deletions docs/api/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: API
weight: 40
---
4 changes: 4 additions & 0 deletions docs/api/capabilities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Capabilities
weight: 20
---
4 changes: 4 additions & 0 deletions docs/api/events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Events
weight: 30
---
4 changes: 4 additions & 0 deletions docs/api/example-event-plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Writing an event subscriber
weight: 70
---
4 changes: 4 additions & 0 deletions docs/api/example-resolver-plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Writing a resolver plugin
weight: 60
---
4 changes: 4 additions & 0 deletions docs/api/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Overview
weight: 10
---
4 changes: 4 additions & 0 deletions docs/api/patches-lock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Patches.lock
weight: 40
---
4 changes: 4 additions & 0 deletions docs/getting-started/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Getting Started
weight: 10
---
14 changes: 14 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Installation
weight: 20
---

Installation is the same as any other Composer package:

```shell
composer require cweagans/composer-patches:~2.0
```

{{< warning title="2.0.0 is not released yet" >}}
This documentation is being written in advance of the release of 2.0.0. The above command will not work yet.
{{< /warning >}}
29 changes: 29 additions & 0 deletions docs/getting-started/system-requirements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: System Requirements
weight: 10
---

Supporting every version of the software that we depend on is not feasible, so we support a limited, "modern-ish" system
configuration.

## PHP

We follow the list of [currently supported PHP versions](https://www.php.net/supported-versions.php) provided by the
community. Unsupported/EOL versions of PHP will not be supported under any circumstances.

## Composer

Composer 2.2 (LTS) is the minimum version. However, few people run such an old version of Composer and we do not
regularly test functionality with anything other than the current stable release. If you run into problems, we _will_
ask you to try a recent version of Composer before proceeding with troubleshooting.

## Patchers

Most of the patchers that are supported don't change much, but there are a couple version-related items to keep in mind:

* **General**: If you're using a particular program for applying patches, it would be great if it was a version that was
released in the last few years. As a rule of thumb, if the version of whatever software is older than what is
distributed with the current Debian "stable" release, we probably won't be able to do much with it.
* **GNU Patch**: Version 2.7 added support for most features of the `diff --git` format and is required for any patches
that rename/copy files, change permissions, or include symlinks. Future versions of Composer Patches may consider
lesser versions to be unusable.
4 changes: 4 additions & 0 deletions docs/getting-started/terminology.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Terminology
weight: 30
---
4 changes: 0 additions & 4 deletions docs/introduction/_index.md

This file was deleted.

95 changes: 0 additions & 95 deletions docs/introduction/getting-started.md

This file was deleted.

71 changes: 0 additions & 71 deletions docs/introduction/installation.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/project/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Project
weight: 50
---
4 changes: 4 additions & 0 deletions docs/project/code-of-conduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Code of conduct
weight: 30
---
4 changes: 4 additions & 0 deletions docs/project/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Contributing
weight: 10
---
4 changes: 4 additions & 0 deletions docs/project/security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Security
weight: 40
---
4 changes: 4 additions & 0 deletions docs/project/support-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Support policy
weight: 20
---
4 changes: 4 additions & 0 deletions docs/troubleshooting/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Troubleshooting
weight: 30
---
4 changes: 4 additions & 0 deletions docs/troubleshooting/fixing-your-patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Fixing your patch
weight: 30
---
4 changes: 4 additions & 0 deletions docs/troubleshooting/guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Guide
weight: 10
---
4 changes: 4 additions & 0 deletions docs/troubleshooting/non-patchable-targets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Non-patchable targets
weight: 20
---
4 changes: 4 additions & 0 deletions docs/usage/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Usage
weight: 20
---
4 changes: 4 additions & 0 deletions docs/usage/commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Commands
weight: 40
---
Loading

0 comments on commit f9b1973

Please sign in to comment.