Skip to content

Commit

Permalink
Update docs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
rudashi committed Apr 10, 2024
1 parent eb322fd commit a2926bf
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/_layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: pl-default
layout: default
---
{{ content }}

Expand Down
39 changes: 39 additions & 0 deletions docs/_layouts/pl-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: pl-default
---
{{ content }}

<div class="pt-4 bottom-nav">
<div class="d-flex width-full border-top">
<div class="d-flex my-4 mr-3 flex-item-equal">
{% if page.previous %}
<a href="{{ page.previous-link }}" style="border-radius: 16px;" class="d-flex flex-items-center p-3 width-full text-gray-light flex-justify-start">
<div class="mr-3">&lt;</div>
<div class="d-flex flex-column">
<div class="text-small">Poprzednie</div>
<div class="text-bold text-blue">{{ page.previous }}</div>
</div>
</a>
{% endif %}
</div>
<div class="d-flex my-4 ml-3 flex-item-equal">
{% if page.next %}
<a href="{{ page.next-link }}" style="border-radius: 16px;" class="d-flex flex-items-center p-3 width-full text-gray-light flex-justify-end">
<div class="d-flex flex-column">
<div class="text-small">Następne</div>
<div class="text-bold text-blue">{{ page.next }}</div>
</div>
<div class="ml-3">&gt;</div>
</a>
{% endif %}
</div>
</div>
</div>
<footer class="d-flex flex-items-center flex-justify-between border-top pt-4">
<div>fluentRegex</div>
<div>
<span>rudashi</span>
<span class="mx-2">·</span>
<span class="text-gray-light">© 2024 All rights reserved</span>
</div>
</footer>
8 changes: 6 additions & 2 deletions docs/advance.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
title: Advance
layout: default
title: Advance
layout: page
next:
next-link:
previous: Usage
previous-link: usage
---

# Advance
Expand Down
10 changes: 5 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
title: Introduction
layout: default
layout: page
next: Installation
next-link: installation
previous:
previous-link:
---

# Introduction
Expand Down Expand Up @@ -33,7 +37,3 @@ Regex::for('https://100commitow.pl/')->find('100commitow')->check();
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/rudashi/fluent-regex/tests.yml?label=tests)
![GitHub repo size](https://img.shields.io/github/repo-size/rudashi/fluent-regex)
![Packagist Version](https://img.shields.io/packagist/v/rudashi/fluent-regex)

---

Now you are ready to perform the [Installation →](installation).
12 changes: 6 additions & 6 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
title: Installation
layout: default
title: Installation
layout: page
next: Usage
next-link: usage
previous: Introduction
previous-link: index
---

# Installation
Expand All @@ -17,7 +21,3 @@ composer require rudashi/fluent-regex
```

**Secondly**... that's all. You are now ready to work on regular expressions.

---

Once the installation is complete, you can start using [Fluent Regex →](usage).
4 changes: 2 additions & 2 deletions docs/pl/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Wstęp
layout: page
next: Installation
next-link: installation
next: Instalacja
next-link: instalacja
previous:
previous-link:
---
Expand Down
10 changes: 5 additions & 5 deletions docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
title: Usage
layout: default
layout: page
next: Advance
next-link: advance
previous: Installation
previous-link: installation
---

# Usage
Expand Down Expand Up @@ -58,7 +62,3 @@ You can start creating your regex by using `Regex::build()`. The `build()` metho
- [`oneOf`](usage/others#oneof)

## Patterns methods

---

Once you have learned how to write patterns, the next section is [Advance usage →](advance).

0 comments on commit a2926bf

Please sign in to comment.