Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
6e7778e
First iteration of the new ME/RS bridge documentation
SirEndii Mar 4, 2025
d080479
Adapt functions to the bridges branch and add documentation for filte…
SirEndii Mar 11, 2025
4c6cd36
fixed wrong branch and edit uri
SirEndii Mar 11, 2025
4a28e1d
amout -> amount
SirEndii Mar 11, 2025
d320d9e
correct name `getDimensionName` to `getDimension`
zyxkad Mar 16, 2025
d28beed
document deletePoint
SirEndii May 14, 2025
ec15291
cache updates
SirEndii May 14, 2025
dae9e38
Fixed build command to push any cache changes that came with the mkdo…
SirEndii May 14, 2025
e821d46
Set a default branch because apparently it does not checkout a branch…
SirEndii May 14, 2025
1414bc5
Apparently there are some changes in remote which I need to pull firs…
SirEndii May 14, 2025
531d671
remove wrong all argument for push
SirEndii May 14, 2025
0251112
Add redstone integrator warning
SirEndii May 14, 2025
868dbef
Make tables working again and centered
SirEndii May 14, 2025
bfc3fd7
Allow blank issues
SirEndii May 20, 2025
b460c0b
Fix page formatting with missing div
SirEndii May 24, 2025
97b53a0
authors cache
SirEndii Jun 7, 2025
eadbb58
Update dependencies
SirEndii Jun 7, 2025
04e8a06
Merge branch '0.7' into 0.7-bridges
SirEndii Jun 7, 2025
2966694
update the requirements.txt with the same packages used in the poetry…
SirEndii Jun 7, 2025
2bc882f
Update ME and RS Bridge documentation with new and updated functions,…
SirEndii Jun 7, 2025
3a1c4f8
Add command and RS/ME Bridge lua objects
SirEndii Jun 10, 2025
b49b795
Fixed duplicate text and hint message
SirEndii Jun 10, 2025
1a074b4
fix typo rsBridge -> meBridge
zyxkad Jun 14, 2025
653ec27
fix more RS -> ME
zyxkad Jun 14, 2025
03e7e15
Revert "fix more RS -> ME"
zyxkad Jun 14, 2025
b04a604
Revert "fix typo rsBridge -> meBridge"
zyxkad Jun 14, 2025
0cd5e4c
rename rs/me_bridge -> me/rs_bridge
zyxkad Jun 14, 2025
bdd1108
idk what am I doing
zyxkad Jun 14, 2025
738c379
update a few links
zyxkad Jun 14, 2025
920c8b9
document utf8 support
456dev Jul 1, 2025
e3a5dba
Merge pull request #108 from 456dev/feat/utf8-support
SirEndii Jul 6, 2025
11c2f82
fix typo in block_reader ipairs -> pairs
zyxkad Aug 2, 2025
94ee5e7
changed older to newer mistypo
notPlancha Aug 3, 2025
25d638e
Merge pull request #112 from notPlancha/patch-1
zyxkad Aug 3, 2025
ec8837b
Add disabled peripheral documentation
SirEndii Sep 8, 2025
daff51e
feat: Added docs for the pattern grid turtle
JCLemme Oct 3, 2025
c0d5eec
Update player_detector.md with new properties
scmcgowen Nov 19, 2025
319e79f
Update player_detector.md with version info
scmcgowen Nov 19, 2025
7fc6632
Fix link path in ME Bridge documentation
isavegas Jan 20, 2026
245da27
Merge pull request #116 from isavegas/patch-1
SirEndii Jan 20, 2026
1ff6e2e
update version supports
zyxkad Mar 19, 2026
f9ec79e
Merge pull request #120 from zyxkad/0.7
SirEndii Mar 19, 2026
f37a792
Apply suggestions from code review
zyxkad Apr 13, 2026
2af3cb5
Merge pull request #114 from scmcgowen/main
zyxkad Apr 13, 2026
498ccb2
fix #107
zyxkad Apr 13, 2026
15b4113
fix #119
zyxkad Apr 13, 2026
d021eef
Changed doc to include the newer snake case naming for peripherals.
Basgamer999 Apr 22, 2026
63a86be
Changed the table structure to remove introduced in on the newere sna…
Basgamer999 Apr 23, 2026
897e12a
Missed the me_brigde introduced in -. Fixed it now. Now all should ha…
Basgamer999 Apr 23, 2026
7652673
Fixed 2 formatting issues on colony_integrator and player_detector
Basgamer999 Apr 23, 2026
487e14b
A bit formatting
zyxkad Apr 23, 2026
6badc0d
Merge pull request #121 from Basgamer999/0.7
zyxkad Apr 23, 2026
91dec6e
Improve devcontainer and add gh-pages fetch for local versioning testing
SirEndii Apr 29, 2026
09ca630
Improve our workflows and completely ditch netlify. Previews are buil…
SirEndii Apr 29, 2026
e73865a
Fix repo url in mkdocs.yml
SirEndii Apr 29, 2026
258a6d1
Bump dependencies
SirEndii Apr 29, 2026
ea07a75
Fix pytz issue
SirEndii Apr 29, 2026
87a1f13
Merge branch '0.7' into fork/JCLemme/0.7
SirEndii Apr 29, 2026
9faeb39
Fixed some action issues
SirEndii Apr 29, 2026
f5a5c86
Merge branch '0.7' into fork/JCLemme/0.7
SirEndii Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
{
"name": "Python 3.13.2 with MkDocs",
"image": "python:3.13.2",
"postStartCommand": "pip install poetry && poetry install",
"forwardPorts": [
8000
]
"name": "Advanced Peripherals Docs Dev",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",

"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
}
},

"containerEnv": {
"POETRY_VIRTUALENVS_IN_PROJECT": "true",
"POETRY_VIRTUALENVS_CREATE": "true"
},

"onCreateCommand": "pip install poetry",
"updateContentCommand": "poetry install",
"postCreateCommand": "git fetch origin gh-pages:gh-pages || true",

"forwardPorts": [8000],

"remoteUser": "vscode"
}
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
blank_issues_enabled: true
contact_links:
- name: Mod issues
url: https://github.com/Seniorendi/AdvancedPeripherals/issues
url: https://github.com/IntelligenceModding/AdvancedPeripherals/issues
about: Please report bugs at the advanced peripherals repository. This repository is for documentation only.
30 changes: 30 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Cleanup PR Preview
on:
pull_request:
types: [closed]

permissions:
contents: write

jobs:
delete-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install mike
run: pip install mike

- name: Delete Preview
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

mike delete --push pr-${{ github.event.number }}
58 changes: 47 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,56 @@
name: Publish docs via GitHub Pages
name: Publish Documentation
on:
workflow_dispatch:
push:
branches:
- main
- '0.[0-9]+'

permissions:
contents: write # allows pushing to gh-pages

jobs:
build:
name: Deploy docs
runs-on: self-hosted
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0 # mike needs history to manage versions

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
pip install poetry
poetry install

- name: Inject Branch Name into Config
run: |
sed -i "s|BRANCH_NAME_HERE|${{ github.ref_name }}|g" mkdocs.yml

# Just to verify it worked in the logs
grep -E "branch:|edit_uri:" mkdocs.yml

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@2833747909e0fab61db67a60e8d6e91a871f60aa
- name: Deploy Version
env:
EDIT_BRANCH_URI: edit/${{ github.ref_name }}/docs/
MKDOCS_PLUGINS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REQUIREMENTS: requirements.txt
run: |
# Get current branch name
BRANCH_NAME=${GITHUB_REF_NAME}

# Configure Git
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

if [ "$BRANCH_NAME" == "main" ]; then
poetry run mike deploy --push --update-aliases dev
elif [ "$BRANCH_NAME" == "0.8" ]; then
poetry run mike deploy --push --update-aliases 0.8 canary
elif [ "$BRANCH_NAME" == "0.7" ]; then
poetry run mike deploy --push --update-aliases 0.7 latest
else
poetry run mike deploy --push "$BRANCH_NAME"
fi
56 changes: 56 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: PR Preview
on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: write
pull-requests: write

jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
pip install poetry
poetry install

- name: Deploy Preview
env:
MKDOCS_PLUGINS: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EDIT_BRANCH_URI: edit/${{ github.head_ref }}/docs/
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Deploy to a version named 'pr-{number}'
poetry run mike deploy --push pr-${{ github.event.number }}

echo "Preview available at: https://docs.advanced-peripherals.de/pr-${{ github.event.number }}/"
- name: Post PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: documentation-preview
message: |
## 📝 Documentation Preview Ready!

| Item | Details |
| :--- | :--- |
| **Status** | ✅ Deployed Successfully |
| **Preview Link** | [View Documentation](https://docs.advanced-peripherals.de/pr-${{ github.event.number }}/) |
| **Source Branch** | `${{ github.head_ref }}` |
| **Version Alias** | `pr-${{ github.event.number }}` |

> [!NOTE]
> The **Edit** buttons on this preview link directly to your branch. Changes made there will update this preview after a few minutes.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
site/
.idea
.idea
/.cache/
.vscode
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

10 changes: 10 additions & 0 deletions docs/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,14 @@ b.si {
font-size: 1.5rem;
padding-right: 0.3rem;
vertical-align: 1rem;
}

/* Center Markdown Tables (requires md_in_html extension) */
.center-table {
text-align: center;
}

.md-typeset .center-table :is(td,th):not([align]) {
/* Reset alignment for table cells */
text-align: initial;
}
27 changes: 27 additions & 0 deletions docs/guides/disabled_peripherals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
comments: true
---

# Disabled Peripherals

!!! failure
Only available for 1.19.2-0.7.39r, 1.20.1-0.7.45r, 1.21.1-0.7.57b or newer


Peripherals can be disabled in the configuration file of AP in `{minecraft_folder}/config/Advancedperipherals/peripherals.toml`.

When disabled, these peripherals can still be wrapped but all the functions throw a LuaException. Besides that, you can now find a new function called `peripheralDisabled`.
You can simply check in your script if a connected peripheral is disabled via the following example.

```lua
box = peripheral.find("chat_box") -- (1)
if box.peripheralDisabled then -- (2)
error("Peripheral is Disabled", 0)
end

print("Peripheral is not Disabled")

```

1. Can be any peripheral, as long as it is from AP.
2. We just check if the function exists, we don't run it since the function does not exist when the peripheral is not disabled.
31 changes: 29 additions & 2 deletions docs/guides/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ These can set the item, count, slots, tags, nbt or fingerprint values.

## Syntax

### Item/Fluid Name and Tag
### Item/Fluid/Chemical Name and Tag

The item's/fluid's filter name or tag can be specified with the `name` field.
If this field is not set, the filter will try to search for items with the right nbt values specified in the `nbt` field
Expand All @@ -32,9 +32,36 @@ This can be a tag or a name. To filter for tags, place a `#` in front of the nam
}
```

### Types

!!! success "Added in version 0.8 and 1.21.1-0.7"

Some functions can be used with any type of filter to prevent the same functions with just a different name. These filters are called generic filters.
They automatically search if the `name` provided is an item, a fluid or a mekanism chemical - in this order.
If none could be found, it will return an empty filter with the message `NO_VALID_FILTER_TYPE`.

A type can also be forced using the `type` key.
Depending on the AP version and the function, the following types can be used: `item`, `fluid` and `chemical`.

```lua
{
name = "minecraft:water"
type = "fluid"
}
```

The following example would return nil with the message `FLUID_NOT_FOUND` when used in a function.
```lua
{
name = "minecraft:dirt"
type = "fluid"
}
```


### Count

The item's/fluid's filter amout can be specified with the `count` field.
The item's/fluid's filter amount can be specified with the `count` field.
Standard values are 64 or 1000 for fluids.

```lua
Expand Down
Loading