Skip to content

Commit e9c306b

Browse files
authored
Merge pull request #64 from ericdallo/add-webpage
Add action for gh-pages
2 parents f7d1f19 + 4e33733 commit e9c306b

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

.github/workflows/docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: MkDocs
14+
run: |
15+
cp -rf README.md images docs
16+
docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material -- build
17+
18+
- name: Deploy
19+
uses: peaceiris/actions-gh-pages@v3
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
publish_dir: ./site

docs/stylesheets/extra.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:root {
2+
--md-primary-fg-color: #333333;
3+
--md-accent-fg-color: #EB7A2F;
4+
--md-default-fg-color--light: #999999;
5+
}
6+
7+
.md-footer {
8+
--md-default-fg-color: #333333;
9+
}
10+
11+
.md-grid {
12+
max-width: 70rem;
13+
}
14+
15+
.md-typeset a {
16+
color: #999999;
17+
}

images/logo.png

8.23 KB
Loading

mkdocs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
site_name: LSP Haskell
2+
3+
extra_css:
4+
- stylesheets/extra.css
5+
6+
theme:
7+
name: material
8+
logo: images/logo.png
9+
favicon: images/logo.png
10+
icon:
11+
repo: fontawesome/brands/github
12+
13+
extra:
14+
social:
15+
- icon: fontawesome/brands/github-alt
16+
link: https://github.com/emacs-lsp
17+
- icon: fontawesome/brands/twitter
18+
link: https://twitter.com/yonchovski
19+
- icon: fontawesome/brands/gitter
20+
link: https://gitter.im/emacs-lsp/lsp-mode
21+
22+
repo_name: emacs-lsp/lsp-haskell
23+
repo_url: https://github.com/emacs-lsp/lsp-haskell
24+
25+
markdown_extensions:
26+
- pymdownx.superfences
27+
- pymdownx.emoji:
28+
emoji_index: !!python/name:materialx.emoji.twemoji
29+
emoji_generator: !!python/name:materialx.emoji.to_svg
30+
- codehilite
31+
- toc:
32+
permalink: '#'
33+
34+
plugins:
35+
- search
36+
- awesome-pages
37+
- git-revision-date-localized

0 commit comments

Comments
 (0)