Skip to content

enhance: Update README.md for Dokan development setup and guidelines #2779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

MdAsifHossainNadim
Copy link
Contributor

@MdAsifHossainNadim MdAsifHossainNadim commented Jun 30, 2025

All Submissions:

  • My code follow the WordPress' coding standards
  • My code satisfies feature requirements
  • My code is tested
  • My code passes the PHPCS tests
  • My code has proper inline documentation
  • I've included related pull request(s) (optional)
  • I've included developer documentation (optional)
  • I've added proper labels to this pull request

Changes proposed in this Pull Request:

Related Pull Request(s)

Closes

How to test the changes in this Pull Request:

  • Steps or issue link

Changelog entry

docs: Update README.md with Dokan development setup and guidelines.

Detailed Description of the pull request. What was previous behaviour
and what will be changed in this PR.

Before Changes

Describe the issue before changes with screenshots(s).

After Changes

Describe the issue after changes with screenshot(s).

Feature Video (optional)

Link of detailed video if this PR is for a feature.

PR Self Review Checklist:

  • Code is not following code style guidelines
  • Bad naming: make sure you would understand your code if you read it a few months from now.
  • KISS: Keep it simple, Sweetie (not stupid!).
  • DRY: Don't Repeat Yourself.
  • Code that is not readable: too many nested 'if's are a bad sign.
  • Performance issues
  • Complicated constructions that need refactoring or comments: code should almost always be self-explanatory.
  • Grammar errors.

FOR PR REVIEWER ONLY:

As a reviewer, your feedback should be focused on the idea, not the person. Seek to understand, be respectful, and focus on constructive dialog.

As a contributor, your responsibility is to learn from suggestions and iterate your pull request should it be needed based on feedback. Seek to collaborate and produce the best possible contribution to the greater whole.

  • Correct — Does the change do what it’s supposed to? ie: code 100% fulfilling the requirements?
  • Secure — Would a nefarious party find some way to exploit this change? ie: everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities?
  • Readable — Will your future self be able to understand this change months down the road?
  • Elegant — Does the change fit aesthetically within the overall style and architecture?

Summary by CodeRabbit

  • Documentation

    • Completely rewrote and restructured the README to focus on developer onboarding, setup instructions, repository architecture, testing, contribution guidelines, and community links. Removed previous marketing and promotional content.
  • Chores

    • Removed the obsolete readme generation script from project scripts and updated the release process accordingly.

@MdAsifHossainNadim MdAsifHossainNadim self-assigned this Jun 30, 2025
Copy link
Contributor

coderabbitai bot commented Jun 30, 2025

Walkthrough

The README.md file was extensively rewritten and restructured to focus on developer documentation, removing marketing and end-user content. In package.json, the "readme" script was deleted, and the "release" script was updated to exclude "readme" step. No changes were made to code or exported entities.

Changes

File(s) Change Summary
README.md Rewritten and restructured: removed marketing/end-user content, added developer-focused documentation.
package.json Removed "readme" script; updated "release" script to exclude "readme" step.

Sequence Diagram(s)

No sequence diagram is generated as the changes are limited to documentation and build scripts, with no new or modified control flow.

Assessment against linked issues

Objective (Issue #) Addressed Explanation
Remove README.md file (#2616) README.md was not removed; it was rewritten and retained in the repository.

Assessment against linked issues: Out-of-scope changes

Code Change (file_path) Explanation
Rewriting and restructuring README.md (README.md) The objective was to remove README.md, not rewrite or restructure it.
Removing "readme" script and updating "release" (package.json) The objective did not mention changes to build scripts or package.json.

Suggested labels

QA approved, Test Automation, Upcoming Release

Suggested reviewers

  • mrabbani

Poem

A README once bold, now trimmed and neat,
Its marketing tales have made a retreat.
Scripts were pruned, the build’s more lean,
Yet the file remains—was that foreseen?
Next time, dear devs, let’s check the quest,
For rabbits love hopping to the very best! 🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🔭 Outside diff range comments (2)
package.json (2)

57-57: Left-over devDependency: wp-readme-to-markdown appears unused.

The only consumer of this package – the readme script – was deleted. Keeping an unused devDependency increases install time, attack surface, and audit noise.

-    "wp-readme-to-markdown": "^1.0.1",

58-58: Consolidate tailwind-merge to a single section
tailwind-merge is declared twice in package.json with different versions, which can lead to confusion and accidental version drift:

  • Line 58 (dependencies): "tailwind-merge": "^2.6.0"
  • Line 91 (devDependencies): "tailwind-merge": "^2.5.5",

Keep only one entry—use the section that matches its usage (devDependencies for build tooling, dependencies for runtime)—and delete the other.

Locations to update:

  • package.json:58
  • package.json:91

Suggested diff (removing the older entry in devDependencies):

--- a/package.json
@@ "devDependencies": {
-    "tailwind-merge": "^2.5.5",
}
🧹 Nitpick comments (4)
package.json (1)

20-21: Obsolete script reference removed, but release pipeline still does an extra npm install.

npm install is already implied by the CI/build environment before running the release command. Leaving it inside the release script adds ~ 30 – 60 s (network-dependent) to every release and can create a second, diverging package-lock.json.
Consider dropping it for a leaner, deterministic release step.

-"release": "npm install && npm run build && npm run clean-files && npm run makepot && npm run version && npm run zip",
+"release": "npm run build && npm run clean-files && npm run makepot && npm run version && npm run zip",
README.md (3)

49-57: Missing fenced-code language ⇒ markdown-lint warning (MD040).

The repository-structure block uses a plain fence ``` without a language hint, triggering lint errors and losing syntax-highlighting. Tag it with text (or `plaintext`).

-```
+```text
 dokan-lite/
 ├── 📂 assets/             # Contains all the frontend and admin assets.
@@
 └── 📂 languages/          # Translation files.

---

`105-108`: **Use the correct compound adjective: “Test-Driven Development”.**

Minor wording polish to follow standard terminology.

```diff
-Dokan follows **Test Driven Development** (TDD) practices
+Dokan follows **Test-Driven Development** (TDD) practices

19-26: Repetitive “all of the” phrasing – tighten for conciseness.

The phrase appears four times in close proximity and reads clunky. Example fix for one instance:

-Once you've installed all of the prerequisites, the following will prepare all of the build outputs necessary for development:
+After installing the prerequisites, run the following commands to prepare the build outputs for development:

Apply similar tightening to the surrounding sentences for a crisper README.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 97b88e3 and 1bbec1c.

📒 Files selected for processing (2)
  • README.md (1 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🪛 LanguageTool
README.md

[style] ~15-~15: Consider removing “of” to be more concise
Context: ...o make sure that you have installed all of the prerequisites. ### 📋 Prerequisites *...

(ALL_OF_THE)


[style] ~22-~22: Consider removing “of” to be more concise
Context: ...ro.md)**: We use Composer to manage all of the dependencies for PHP packages and *...

(ALL_OF_THE)


[style] ~26-~26: Consider removing “of” to be more concise
Context: ... it to function. Once you've installed all of the prerequisites, the following will prepa...

(ALL_OF_THE)


[style] ~26-~26: Consider removing “of” to be more concise
Context: ...erequisites, the following will prepare all of the build outputs necessary for development...

(ALL_OF_THE)


[uncategorized] ~107-~107: The adjective “Test-Driven” is spelled with a hyphen.
Context: ...r). | ## 🧪 Testing Dokan follows Test Driven Development (TDD) practices to ensure...

(DRIVEN_HYPHEN)


[uncategorized] ~146-~146: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...etplace plugin for WordPress**. As an open source project, we rely on community contrib...

(EN_COMPOUND_ADJECTIVE_INTERNAL)


[style] ~146-~146: Consider using a less common alternative to make your writing sound more unique and professional.
Context: ...tions to continue to improve Dokan. Feel free to answer questions on GitHub and with...

(FEEL_FREE_TO_STYLE_ME)


[typographical] ~150-~150: Consider adding a comma here.
Context: ... Dokan: ### Contribution Guidelines Please read our [Contribution Guidelines](...

(PLEASE_COMMA)


[typographical] ~162-~162: It appears that a comma is missing.
Context: ...gress** tracking. ### ✨ Feature Request Do you have a brilliant idea, **enhanc...

(COMMA_BEFORE_QUESTION_WITH_MD)

🪛 markdownlint-cli2 (0.17.2)
README.md

49-49: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: e2e tests (2, 3)
  • GitHub Check: api tests (1, 1)
  • GitHub Check: e2e tests (1, 3)
  • GitHub Check: e2e tests (3, 3)

@MdAsifHossainNadim
Copy link
Contributor Author

Following

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
README.md (4)

49-49: Add a language identifier to silence MD040

markdownlint flags this fenced-code block because it lacks a language specifier. Adding something neutral like text avoids the warning and improves syntax highlighting.

-```
+```text

68-70: Fix typos in the directory tree

• “Playwrite” → “Playwright”
• “Utilitiy” → “Utility”

-│   └── pw/                # Playwrite tests.
+│   └── pw/                # Playwright tests.-│   └── utilities/         # Utilitiy functions for reactive frontend.
+│   └── utilities/         # Utility functions for reactive frontend.

127-129: Hyphenate compound adjective “Test-Driven”

-Dokan follows **Test Driven Development** (TDD) practices
+Dokan follows **Test-Driven Development** (TDD) practices

166-166: Hyphenate “open-source”

Maintains consistency with common OSS terminology.

-As an **open source project**, we rely on community contributions
+As an **open-source project**, we rely on community contributions
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1bbec1c and e25e739.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
README.md

[style] ~15-~15: Consider removing “of” to be more concise
Context: ...o make sure that you have installed all of the prerequisites. ### 📋 Prerequisites *...

(ALL_OF_THE)


[style] ~22-~22: Consider removing “of” to be more concise
Context: ...ro.md)**: We use Composer to manage all of the dependencies for PHP packages and *...

(ALL_OF_THE)


[style] ~26-~26: Consider removing “of” to be more concise
Context: ... it to function. Once you've installed all of the prerequisites, the following will prepa...

(ALL_OF_THE)


[style] ~26-~26: Consider removing “of” to be more concise
Context: ...erequisites, the following will prepare all of the build outputs necessary for development...

(ALL_OF_THE)


[uncategorized] ~127-~127: The adjective “Test-Driven” is spelled with a hyphen.
Context: ...r). | ## 🧪 Testing Dokan follows Test Driven Development (TDD) practices to ensure...

(DRIVEN_HYPHEN)


[uncategorized] ~166-~166: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...etplace plugin for WordPress**. As an open source project, we rely on community contrib...

(EN_COMPOUND_ADJECTIVE_INTERNAL)


[style] ~166-~166: Consider using a less common alternative to make your writing sound more unique and professional.
Context: ...tions to continue to improve Dokan. Feel free to answer questions on GitHub and with...

(FEEL_FREE_TO_STYLE_ME)


[typographical] ~170-~170: Consider adding a comma here.
Context: ... Dokan: ### Contribution Guidelines Please read our [Contribution Guidelines](...

(PLEASE_COMMA)


[typographical] ~182-~182: It appears that a comma is missing.
Context: ...gress** tracking. ### ✨ Feature Request Do you have a brilliant idea, **enhanc...

(COMMA_BEFORE_QUESTION_WITH_MD)

🪛 markdownlint-cli2 (0.17.2)
README.md

49-49: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: e2e tests (2, 3)
  • GitHub Check: e2e tests (3, 3)
  • GitHub Check: e2e tests (1, 3)
  • GitHub Check: api tests (1, 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove README.md file
3 participants