Skip to content

Commit 391515d

Browse files
committed
Update README and Maven configuration for image handling
1 parent 60e5719 commit 391515d

3 files changed

Lines changed: 4 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Java SDK for programmatic control of GitHub Copilot CLI.
1010
> **Note:** This SDK may change in breaking ways.
1111
1212
<p align="center">
13-
<img src="src/site/resources/image.png" alt="Copilot SDK for Java" />
13+
<img width="480" src="image.png" alt="Copilot SDK for Java" />
1414
</p>
1515

1616
## Table of Contents

image.png

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/site/resources/image.png

pom.xml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@
7878
<artifactId>maven-compiler-plugin</artifactId>
7979
<version>3.14.1</version>
8080
</plugin>
81-
<!-- Copy README.md and images to site directory -->
81+
<!-- Copy README.md to site directory as index.md -->
8282
<plugin>
8383
<groupId>org.apache.maven.plugins</groupId>
8484
<artifactId>maven-antrun-plugin</artifactId>
8585
<version>3.1.0</version>
8686
<executions>
8787
<execution>
88-
<id>copy-docs-to-site</id>
88+
<id>copy-readme-to-site</id>
8989
<phase>pre-site</phase>
9090
<goals>
9191
<goal>run</goal>
@@ -94,16 +94,6 @@
9494
<target>
9595
<copy file="${project.basedir}/README.md"
9696
tofile="${project.basedir}/src/site/markdown/index.md"/>
97-
<!-- Copy images referenced in README.md to site root -->
98-
<mkdir dir="${project.basedir}/src/site/resources"/>
99-
<copy todir="${project.basedir}/src/site/resources">
100-
<fileset dir="${project.basedir}">
101-
<include name="*.png"/>
102-
<include name="*.jpg"/>
103-
<include name="*.gif"/>
104-
<include name="*.svg"/>
105-
</fileset>
106-
</copy>
10797
</target>
10898
</configuration>
10999
</execution>

0 commit comments

Comments
 (0)