Skip to content

Commit

Permalink
yw
Browse files Browse the repository at this point in the history
  • Loading branch information
kemo-1 committed Aug 10, 2024
1 parent e52b915 commit ae7c991
Show file tree
Hide file tree
Showing 167 changed files with 28,275 additions and 0 deletions.
95 changes: 95 additions & 0 deletions .diagrams/ajoromia.d2
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
direction: left

**: {
style.font-size: 100

style.font-color: "#fffafa"
}

body*: {width: 3400}
grid*: {width: 3400}

boorder: "" {
body: "الكلام"
grid: "" {
grid-columns: 1

اللفظ \: صوت مشتمل على حروف الهجاء :{width: 3300}
المركب \: مؤلف من كلمتين أو أكثر تحقيقا أو تقديرا
المفيد \: يحسن سكوت المتكلم عليه ويحصل منه الفائدة
بالوضع \: لفظ وضعه العرب للدلالة على معنى من المعاني
}

body1: "أنواع الكلام"
grid1: "" {
grid-columns: 1

اسم \: كلمة دلت على معنى في نفسها ولم تقترن بزمان: {width: 3300}
فعل \: كلمة دلت على معنى في نفسها واقترنت بزمان
حرف \: كلمة لا تدل على معنى في نفسها وتدل على معنى في غيرها
}

body2: "علامات الاسم"
grid2: "" {
grid-columns: 1

الإسناد إليه - كتبت بالقلم ( التاء فاعل و مسند اليها الكتابة ): {width: 3300}
الخفض - رأيت كتاب الطالبِ ( طالب اسم لأنه مخفوض )
حروف الخفض - عدت إلى المنزلِ ( منزل اسم لأنه سبق بحرف خفض )
التنوين - هذا طالبٌ مجتهدٌ ( طالب و مجتهد اسمان لأنهما منونان )
دخول الألف واللام - كتبت على الطاولة ( طاولة اسم لدخول أل عليها )
}

body3: "علامات الفعل"
grid3: "" {
grid-columns: 1

قد - قد أفلح المؤمنون ( أفلح فعل لدخول قد عليه ) : {width: 3300}
السين - سأستغفر لك ربي ( أستغفر فعل لأنه سبق بالسين)
سوف - سوف أقوم بواجبي ( أقوم فعل لأنه سبق بسوف)
تاء التأنيث الساكنة - جائت سندس ( جاء فعل لدخول التاء عليه)
}

body4: "علامة الحرف"
grid4: "" {
grid-columns: 1
ما لا يصلح معه دليل الاسم ولا دليل الفعل: {width: 3300}
}

body5: "أنواع الأفعال وعلاماتها"
grid5: "" {
grid-columns: 1
ماضي: {width: 3300; style.fill: "#45475A"}
تاء التأنيث الساكنة
مضارع :{style.fill: "#45475A"}
قبوله الجزم بـ لم
يبدأ بأحد حروف أنيت
يضم أوله إذا كان ماضيه من أربعة حروف
يفتح أوله فيما عدا ذلك

أمر :{style.fill: "#45475A"}
يدل على الطلب
دخول ياء المخاطبة
}

}
# N1: "#CDD6F4",
# N2: "#BAC2DE",
# N3: "#A6ADC8",
# N4: "#585B70",
# N5: "#45475A",
# N6: "#45475A",
# N7: "#1E1E2E",


vars: {
d2-config: {
theme-overrides: {

# B2: "#66BB6A"
# B3: "#A5D6A7"
# B4: "#45475A"

}
}
}
141 changes: 141 additions & 0 deletions .diagrams/ajoromia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
141 changes: 141 additions & 0 deletions .diagrams/الآجرومية.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Clear all Github actions caches on sundays
permissions:
actions: write
on:
workflow_dispatch:

jobs:
my-job:
name: Delete all caches
runs-on: ubuntu-20.04

steps:
- name: Clear caches
uses: easimon/wipe-cache@main
with:
dry-run: 'false'
54 changes: 54 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy to GitHub Pages

on:
# push:
# branches: [ main ]
# paths:
# - 'src/content/docs/_run.md'

# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
# push:
workflow_run:
workflows: ['Fetch From Google Docs']
types: [completed]
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: write
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install d2
run: |
curl -fsSL https://d2lang.com/install.sh | sh -s --
- name: Install, build, and upload your site
uses: withastro/action@v2
with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 22 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
package-manager: bun@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
40 changes: 40 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Fetch From Google Docs
on:
workflow_dispatch:
repository_dispatch:

jobs:
fetch:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
concurrency:
group: fetching
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest # or "latest", "canary", <sha>

# cache-dependency-path: package-lock.json
- name: Install Dependency
run: bun install
- name: Download files
run: bun ./scripts/docs-to-md.js
env:
GOOGLE_DOCS_ACCESS: ${{ secrets.GOOGLE_DOCS_ACCESS }}
GOOGLE_DOCS_REFRESH: ${{ secrets.GOOGLE_DOCS_REFRESH }}
GOOGLE_DOCS_CLIENT_ID: ${{ secrets.GOOGLE_DOCS_CLIENT_ID }}
GOOGLE_DOCS_CLIENT_SECRET: ${{ secrets.GOOGLE_DOCS_CLIENT_SECRET }}
- name: Rename files
run: "cd src/content/docs ;find ./ -type f | xargs sed -i 's/الترتيب/sidebar: \\n order/g' ;find ./ -type f | xargs sed -i 's/التاريخ/date/g' ;find ./ -type f | xargs sed -i 's/الملخص/excerpt/g' ;find ./ -type f | xargs sed -i 's/الأقسام/tags/g' ;find ./ -type f | xargs sed -i 's/آخر تعديل/lastUpdated/g' ;find ./ -type f | xargs sed -i 's/مسودة/draft: true/g' ;find ./ -type f | xargs sed -i 's/++/`/g';find ./ -type f | xargs sed -i 's/\\*\\*\\*/---/g' ; find ./ -type f | xargs sed -i 's/#انتهى/{% \\/question %}/g'; find ./ -type f | xargs sed -i 's/#سؤال/{% question %} \\n /g'"
- name: Commit new data
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update Google Docs files"
commit_user_name: GitHub Actions
commit_user_email: [email protected]
commit_author: GitHub Actions <[email protected]>
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.astro/
.obsidian
.trash
.vscode
node_modules
dist/
dev-dist/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@


## سنابل الفردوس
موقع يهتم بنشر العلم النافع على ضوء الكتاب و السنة و سلف هذه الأمة



https://sanabel-al-firdaws.github.io/

Loading

0 comments on commit ae7c991

Please sign in to comment.