Skip to content

Commit

Permalink
Updates for site
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Mar 14, 2021
1 parent a9fb90c commit be21c53
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 37 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ org.eclipse.buildship.core.prefs

# Temporary API docs
docs/api
package-list-coil-base

# Mkdocs temporary serving folder
docs-gen
site
*.bak
*.bak
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Accompanist logo](images/social.svg)
![Accompanist logo](docs/header.png)

Accompanist is a group of libraries which aim to supplement [Jetpack Compose][compose] with features which are commonly required by developers, but not yet available.

Expand Down
4 changes: 4 additions & 0 deletions docs/appcompat-theme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# AppCompat Compose Theme Adapter

[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-appcompat-theme)](https://search.maven.org/search?q=g:com.google.accompanist)

A library that enables reuse of [AppCompat][appcompat] XML themes for theming in [Jetpack Compose][compose].

The basis of theming in [Jetpack Compose][compose] is the [`MaterialTheme`][materialtheme] composable, where you provide [`Colors`][colors], [`Shapes`][shapes] and [`Typography`][typography] instances containing your styling parameters:
Expand Down Expand Up @@ -124,6 +126,8 @@ There are some known limitations with the implementation at the moment:

## Usage

[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-appcompat-theme)](https://search.maven.org/search?q=g:com.google.accompanist)

``` groovy
repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions docs/flowlayout.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ FlowColumn {

For examples, refer to the [samples](https://github.com/google/accompanist/tree/main/sample/src/main/java/com/google/accompanist/sample/flowlayout).

For more information, visit the documentation: https://google.github.io/accompanist/flowlayout

## Download

[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-flowlayout)](https://search.maven.org/search?q=g:com.google.accompanist)

```groovy
repositories {
mavenCentral()
Expand Down
Binary file modified docs/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions generate_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ cp -R docs/* $DOCS_ROOT

cp README.md $DOCS_ROOT/index.md
cp CONTRIBUTING.md $DOCS_ROOT/contributing.md
cp images/social.png $DOCS_ROOT/header.png
cp images/social.svg $DOCS_ROOT/header.svg

sed -i.bak 's/CONTRIBUTING.md/contributing/' $DOCS_ROOT/index.md
sed -i.bak 's/README.md//' $DOCS_ROOT/index.md
sed -i.bak 's/images\/social.svg/header.svg/' $DOCS_ROOT/index.md
sed -i.bak 's/docs\/header.png/header.png/' $DOCS_ROOT/index.md

# Convert docs/xxx.md links to just xxx/
sed -i.bak 's/docs\/\([a-zA-Z-]*\).md/\1/' $DOCS_ROOT/index.md
Expand Down
Binary file removed images/social.png
Binary file not shown.
16 changes: 0 additions & 16 deletions images/social.svg

This file was deleted.

36 changes: 22 additions & 14 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,26 @@ repo_url: 'https://github.com/google/accompanist'
# Navigation
nav:
- 'Overview': index.md
- 'Coil': coil.md
- 'Glide': glide.md
- 'Picasso': picasso.md
- 'Insets': insets.md
- 'AppCompat Theme': appcompat-theme.md
- 'API':
- 'Coil': api/coil/coil/
- 'Glide': api/glide/glide/
- 'Picasso': api/picasso/picasso/
- 'Image Loading Core': api/imageloading-core/imageloading-core/
- 'Insets': api/insets/insets/
- 'AppCompat Theme': api/appcompat-theme/appcompat-theme
- 'Coil':
- 'Guide': coil.md
- 'API': api/coil/coil/
- 'Glide':
- 'Guide': glide.md
- 'API': api/glide/glide/
- 'Image Loading Core':
- 'API': api/imageloading-core/imageloading-core
- 'Picasso':
- 'Guide': picasso.md
- 'API': api/picasso/picasso/
- 'Insets':
- 'Guide': insets.md
- 'API': api/insets/insets/
- 'AppCompat Theme':
- 'Guide': appcompat-theme.md
- 'API': api/appcompat-theme/appcompat-theme
- 'Flow layouts':
- 'Guide': flowlayout.md
- 'API': api/flowlayout/flowlayout
- 'Snapshots': using-snapshot-version.md
- 'Contributing': contributing.md
- 'Maintainers':
Expand All @@ -41,8 +49,8 @@ theme:
primary: 'black'
accent: 'deep orange'
font:
text: 'IBM Plex Sans'
code: 'IBM Plex Mono'
text: 'Roboto'
code: 'JetBrains Mono'

# Extensions
markdown_extensions:
Expand Down

0 comments on commit be21c53

Please sign in to comment.