Skip to content

Commit 04f632f

Browse files
authored
Remove kotlin.github.io/ktfmt (#656)
1 parent 310d848 commit 04f632f

23 files changed

Lines changed: 0 additions & 17613 deletions

.github/workflows/publish_artifacts_on_release.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -82,35 +82,3 @@ jobs:
8282
core/build/libs/ktfmt-*.jar
8383
env:
8484
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
86-
deploy_website:
87-
runs-on: ubuntu-latest
88-
steps:
89-
- uses: actions/checkout@v4
90-
with:
91-
ref: ${{ github.event.release.tag_name || inputs.release_tag || github.ref }}
92-
93-
- uses: actions/setup-node@v4
94-
95-
- name: Deploy website
96-
run: |
97-
KTFMT_TMP_DIR=$(mktemp -d)
98-
99-
pushd website
100-
npm install .
101-
KTFMT_WEBSITE_OUTPUT_DIR="$KTFMT_TMP_DIR" gulp build-website
102-
popd
103-
104-
git fetch
105-
git checkout gh-pages
106-
git config user.email ktfmt@facebook.com
107-
git config user.name ktfmt
108-
109-
rm -rf *
110-
cp -R "$KTFMT_TMP_DIR"/* .
111-
112-
git add .
113-
git commit -m "Publish website"
114-
git push --force
115-
116-
rm -rf "$KTFMT_TMP_DIR"

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ out/
1313
.DS_Store
1414
classes/
1515

16-
online_formatter/out.yml
17-
1816
.intellijPlatform/
1917

20-
website/node_modules
21-
release-ktfmt-website/
22-
2318
### Gradle ###
2419
.gradle
2520
**/build/

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ IntelliJ:
1818
| ------ | --------|
1919
| ![ktlint](docs/images/ktlint.png) | ![IntelliJ](docs/images/intellij.png) |
2020

21-
## Playground
22-
23-
We have a [live playground](https://kotlin.github.io/ktfmt/) where you can easily see how ktfmt
24-
would format your code.
25-
Give it a try! https://kotlin.github.io/ktfmt/
2621

2722
## Using the formatter
2823

RELEASING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@
44
2. Create a new Release in GitHub. A GitHub Action is automatically triggered and builds and publishes the artifacts to
55
1. Maven
66
2. IntelliJ Plugin marketplace
7-
3. TODO: also automate website generation (https://facebook.github.io/ktfmt/) and the AWS Lambda that powers it. For now, you must clone the repo locally, and manually run some steps.
8-
1. pushd online_formatter; ./build_and_deploy.sh; popd
9-
1. Credentials should be configured using https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#credentials
10-
2. Follow instructions in website/README.md

gradle/libs.versions.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[versions]
22
java = "17"
33
kotlin = "2.3.20"
4-
com-amazonaws-aws-lambda-java-core = "1.2.1"
5-
com-amazonaws-aws-lambda-java-events = "2.2.9"
6-
com-google-code-gson-gson = "2.10.1"
74
com-google-googlejavaformat-google-java-format = "1.23.0"
85
com-google-guava-guava = "33.5.0-jre"
96
com-google-truth-truth = "1.0"
@@ -18,14 +15,9 @@ gradlePlugin-nexusPublish = "2.0.0"
1815
gradlePlugin-shadowJar = "9.0.2"
1916

2017
[libraries]
21-
amazon-aws-lambda-core = { module = "com.amazonaws:aws-lambda-java-core", version.ref = "com-amazonaws-aws-lambda-java-core" }
22-
amazon-aws-lambda-events = { module = "com.amazonaws:aws-lambda-java-events", version.ref = "com-amazonaws-aws-lambda-java-events" }
23-
amazon-aws-sdk-bom = { module = "software.amazon.awssdk:bom", version = "2.10.73" }
24-
amazon-aws-sdk-lambda = { module = "software.amazon.awssdk:lambda" }
2518
ec4j = { module = "org.ec4j.core:ec4j-core", version.ref = "org-ec4j-core" }
2619
googleJavaformat = { module = "com.google.googlejavaformat:google-java-format", version.ref = "com-google-googlejavaformat-google-java-format" }
2720
googleTruth = { module = "com.google.truth:truth", version.ref = "com-google-truth-truth" }
28-
gson = { module = "com.google.code.gson:gson", version.ref = "com-google-code-gson-gson" }
2921
guava = { module = "com.google.guava:guava", version.ref = "com-google-guava-guava" }
3022
junit = { module = "junit:junit", version.ref = "junit-junit" }
3123
jna = { module = "net.java.dev.jna:jna", version.ref = "net-java-dev-jna-jna" }

online_formatter/README.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

online_formatter/build.gradle.kts

Lines changed: 0 additions & 67 deletions
This file was deleted.

online_formatter/build_and_deploy.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

online_formatter/format.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

online_formatter/src/main/kotlin/main.kt

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)