Skip to content

Commit

Permalink
add new doc site to maven build chain. alibaba#2161
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Jul 18, 2022
1 parent 55147e7 commit 842462f
Show file tree
Hide file tree
Showing 226 changed files with 95 additions and 1,544 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-prettier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: auto prettier
on:
push:
paths:
- 'site-vuepress/**'
- 'site/**'

jobs:
prettier:
Expand All @@ -18,4 +18,4 @@ jobs:
- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --config ./site-vuepress/.prettierrc.json --ignore-path ./site-vuepress/.prettierignore --write ./site-vuepress
prettier_options: --config ./site/.prettierrc.json --ignore-path ./site/.prettierignore --write ./site
2 changes: 1 addition & 1 deletion packaging/src/main/assembly/assembly-doc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<fileSets>
<fileSet>
<directory>../site/target/site/sphinx/</directory>
<directory>../site/docs/.vuepress/dist/</directory>
<includes>
<include>**/*</include>
</includes>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
logo: "/images/arthas_light.png",
logoDark: "/images/arthas_dark.png",
repo: "alibaba/arthas",
docsDir: "site-vuepress/docs",
docsDir: "site/docs",
docsBranch: "master",

locales: {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion site-vuepress/package.json → site/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "site-vuepress",
"name": "site",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down
142 changes: 90 additions & 52 deletions site/pom.xml
Original file line number Diff line number Diff line change
@@ -1,56 +1,94 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.taobao.arthas</groupId>
<artifactId>arthas-all</artifactId>
<groupId>com.taobao.arthas</groupId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>arthas-site</artifactId>
<name>arthas-site</name>

<profiles>
<profile>
<id>full</id>
<build>
<plugins>
<plugin>
<groupId>kr.motd.maven</groupId>
<artifactId>sphinx-maven-plugin</artifactId>
<version>2.6.0</version>
<executions>
<execution>
<id>zh doc</id>
<phase>package</phase>
<configuration>
<sourceDirectory>${basedir}/src/site/sphinx</sourceDirectory>
<outputDirectory>${project.build.directory}/site/sphinx</outputDirectory>
<name>Arthas documentation</name>
<description>Documentation about Arthas</description>
</configuration>
<goals>
<goal>generate</goal>
</goals>
</execution>
<execution>
<id>en doc</id>
<phase>package</phase>
<configuration>
<sourceDirectory>${basedir}/src/site/sphinx/en</sourceDirectory>
<outputDirectory>${project.build.directory}/site/sphinx/en</outputDirectory>
<name>Arthas English documentation</name>
<description>Documentation about Arthas</description>
</configuration>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
<modelVersion>4.0.0</modelVersion>

<artifactId>site</artifactId>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<yarn.registry.url>https://registry.npmmirror.com/</yarn.registry.url>
<!-- <yarn.download.url>https://npm.taobao.org/mirrors/yarn</yarn.download.url> -->
<node.download.url>https://npmmirror.com/mirrors/node/</node.download.url>
<node.version>v16.13.2</node.version>
<yarn.version>v1.22.15</yarn.version>
</properties>

<build>
<finalName>site</finalName>

<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<!-- Use the latest released version:
https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
<version>1.12.1</version>
<executions>
<execution>
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
</execution>
<execution>
<id>set registry</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>config set registry ${yarn.registry.url}</arguments>
</configuration>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<!-- optional: The default argument is actually
"install", so unless you need to run some other yarn command,
you can remove this whole <configuration> section.
-->
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>

<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>

<configuration>
<!-- optional: The default argument is actually
"install", so unless you need to run some other npm command,
you can remove this whole <configuration> section.
-->
<arguments>run docs:build</arguments>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
<yarnVersion>${yarn.version}</yarnVersion>

<!-- optional: where to download node from. Defaults to https://nodejs.org/dist/ -->
<nodeDownloadRoot>${node.download.url}</nodeDownloadRoot>
</configuration>
</plugin>
</plugins>
</build>
</project>
20 changes: 0 additions & 20 deletions site/src/site/sphinx/Makefile

This file was deleted.

69 changes: 0 additions & 69 deletions site/src/site/sphinx/_extensions/highlightjs.py

This file was deleted.

33 changes: 0 additions & 33 deletions site/src/site/sphinx/_static/add_badges.js

This file was deleted.

47 changes: 0 additions & 47 deletions site/src/site/sphinx/_static/center_page.js

This file was deleted.

Binary file removed site/src/site/sphinx/_static/dashboard.png
Diff not rendered.
Loading

0 comments on commit 842462f

Please sign in to comment.