Skip to content

Commit 9d3305c

Browse files
Merge branch 'master' into DeveloperTryingToCodeLikeOtherOfThem-patch-22
2 parents b408d25 + 64725d5 commit 9d3305c

91 files changed

Lines changed: 672 additions & 449 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ updates:
55
schedule:
66
interval: "weekly"
77
labels:
8-
- "dependics"
8+
- "dependencies"
99
- "javascript"
1010
- "typescript"

.github/forGiveTernalPlaceHolderBlocker.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
``` js
2+
async function botExists() {
3+
const script = `<span class="asker-name">{{Ditanyakan oleh}}: <span itemprop="author" itemscope="" itemtype="https://schema.org/Person"><span itemprop="name"><a itemprop="url" href="#${data?.data_content?.data?.id || author_name.toUpperCase()}">${author_name.toUpperCase()}</a></span></span></span>
4+
</div>`
5+
return script;
6+
}
7+
```
8+
9+
10+
*Placeholder created by [DeveloperTryingToCodeLikeOtherOfThem](https://github.com/DeveloperTryingToCodeLikeOtherOfThem)*

.github/workflows/agent_.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: "Agent"
2+
run-name: "Agent"
3+
4+
on:
5+
issues:
6+
types: [opened]
7+
8+
jobs:
9+
triage:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
issues: write
14+
steps:
15+
- name: "Checkout"
16+
uses: actions/checkout@v4
17+
18+
- name: Search for Repository
19+
id: search
20+
uses: actions/github-script@v7
21+
with:
22+
script: |
23+
const owner = context.repo.owner;
24+
const repo = "pxt-common-packages";
25+
const issueText = context.payload.issue.title + " " + context.payload.issue.body;
26+
27+
const query = `repo:${owner}/${repo} "${issueText}"`;
28+
const results = await github.rest.search.code({ q: query });
29+
30+
let message = "";
31+
if (results.data.total_count === 0) {
32+
message = "No related files or code were found in this repository.";
33+
} else {
34+
message = `Found **${results.data.total_count}** related matches:\n`;
35+
for (const item of results.data.items) {
36+
message += `- \`${item.path}\`\n`;
37+
}
38+
}
39+
40+
core.setOutput("message", message);
41+
42+
- name: Comment on issue with results
43+
uses: actions/github-script@v7
44+
with:
45+
script: |
46+
const body = `### 🔍 Automated Search Results\n${process.env.SEARCH_MESSAGE}`;
47+
await github.rest.issues.createComment({
48+
owner: context.repo.owner,
49+
repo: context.repo.repo,
50+
issue_number: context.issue.number,
51+
body
52+
});
53+
54+
env:
55+
token: ${{ secrets.GITHUB_TOKEN }}
56+
SEARCH_MESSAGE: ${{ steps.search.outputs.message }}

.github/workflows/issueCreated.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Issue Created"
2+
run-name: "Issue Created"
3+
4+
on:
5+
issues:
6+
types: [opened]
7+
8+
jobs:
9+
notifyCollaborators:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: read
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: notifyInLog
18+
run: |
19+
echo "✅ View the opened issue."
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Mentioned Actions"
2+
run-name: "Mentioned Actions"
3+
4+
on:
5+
issue_comment:
6+
types: [created]
7+
8+
jobs:
9+
actionsResponse:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
issues: write
14+
steps:
15+
- name: "Checkout"
16+
uses: actions/checkout@v4
17+
- name: "Create Comment"
18+
if: contains(github.event.comment.body, '@github-actions')
19+
uses: actions/github-script@v8
20+
with:
21+
script: |
22+
github.rest.issues.createComment({
23+
owner: context.repo.owner,
24+
repo: context.repo.repo,
25+
issue_number: context.issue.number,
26+
body: "Hello!"
27+
})

.github/workflows/update-docs-index.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Auto‑Generate Docs Index
22

33
on:
4-
push:
5-
paths:
6-
- "docs/**"
7-
- "scripts/generate-docs-index.js"
4+
workflow_dispatch
85

96
jobs:
107
update-index:
@@ -30,9 +27,10 @@ jobs:
3027
run: npm run generate-docs-index
3128

3229
- name: Commit and push changes
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3332
run: |
34-
git config user.name "GitHub Actions Bot"
35-
git config user.email "bot@github.com"
3633
git add docs-index.html
3734
git commit -m "Auto-update docs index" || echo "No changes to commit"
3835
git push
36+

.github/workflows/update-path-links.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828

2929
- name: Commit changes
3030
run: |
31-
git config user.name "docs-link-bot"
32-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
33-
31+
git config user.name "github-actions[bot]"
32+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
33+
3434
git add .
3535
if git diff --cached --quiet; then
3636
echo "No changes to commit."

MORE_ABOUT_THIS_REPOSITORY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
A while ago, I did not plan to make this repository. I made this repository because I noticed a lot of these stuff are very useful
2-
once you understand these concepts, and MakeCode's docs do **not** support most of these documentations.
2+
once you understand these concepts, and MakeCode's docs do **not** support lots of these documentations. I have also covered more stuff
3+
than simply explaining about docs, while explaining about the PXT repository, the core of all targets.

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
## PXT Harware Programming Docs
1+
## MakeCode Common Docs
22
This repository is a package for more comprensive guides about [Microsoft MakeCode](https://makecode.com/)
3-
This package does **not** connect to MakeCode's offical runtime docs, which is why I mentioned previously
4-
what this repository is about.
3+
This package does **not** connect to MakeCode's offical runtime docs. It is useful for helping you find more documentations you are confused with and undocumented documentations, such as
4+
`programHash` and `programName.`
55

66
## Support
7-
This extension **does not** work in any MakeCode editor because of the issues that were encountered in pxt.json.
8-
Because of that, you have to review everything here instead. Also, tags and releases will still be updated, so do **not** worry about that. If you have any questions about this repository, please click on this link here. [Issues: Click Here](https://github.com/DeveloperTryingToCodeLikeOtherOfThem/pxt-hardware-programming-docs/issues). Please do **not** worry if you have questions because it is part of this repository too.
7+
This repository used to be an extension instead of a package, but now it does **not** work in any MakeCode editor. This is because of the issues that were encountered in pxt.json. So now, review everything here instead. Also, tags and releases will still be updated, so do **not** worry about that. If you have any questions about this repository, please click on this link here. [Issues](https://github.com/DeveloperTryingToCodeLikeOtherOfThem/pxt-hardware-programming-docs/issues) Please do **not** worry if you have questions because it is part of this repository too.
98

109

1110
## Patience for this repository
1211
Please be patient because I am the **only collaborator plus contributor** for now doing this work.
13-
If you feel there needs improvements in the documentations, please write the issue. Also, if you think you can fix the bug by your own,
14-
make a pull request and I will approve the checks if it is appropriate and not incorrect information.
15-
You will be a contributor if you did write a pull request by yourself and is approved. There are indeed 4 other contributors in this repository,
16-
but they are bots doing the work for this repository.
12+
If you feel there needs improvements in the documentations, please write the issue.
1713

1814
**If you feel this repository's triage is limited, file an issue on a specific PXT target.
1915
For instance, you have to still make sure the topic is on topic and nothing off topic related things.**
@@ -36,4 +32,4 @@ If you ever followed a link here from a 'Best Answer' site copying an issue of m
3632

3733
<img width="703" height="127" alt="image" src="https://github.com/user-attachments/assets/36cf399e-3b53-40dd-9999-b141b548e815" />
3834

39-
**You may wish to find a link for convenience for viewing these files, which you can find here. [PXT-Hardware-Programming-Docs](https://developertryingtocodelikeotherofthem.github.io/pxt-hardware-programming-docs/)**
35+
[PXT-Common-Docs](https://developertryingtocodelikeotherofthem.github.io/pxt-common-docs/)

0 commit comments

Comments
 (0)