diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..17521af9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,4 @@ +contact_links: + - name: Website + about: Visit the Javaistic website + url: https://javaistic.vercel.app/ diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml new file mode 100644 index 00000000..84d23cf0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -0,0 +1,47 @@ +name: Documentation +description: Report problems and suggest ideas for the documentation +labels: [docs] + +body: + - type: markdown + attributes: + value: >- + Before opening a new issue, make sure it isn't covered by an existing issue. + Please search for [issues with the `docs` label][docs-issues] (including + closed issues) before you continue. + + + [docs-issues]: https://github.com/javaistic/javaistic/issues?q=is%3Aissue+label%3Adocs+is%3Aopen + + - type: dropdown + attributes: + label: Kind of Issue + description: >- + If your issue type is not here, select "other" and explain in the + "Description" field below. + options: [Improvement, Mistake, Other] + validations: + required: true + + - type: textarea + attributes: + label: Description + description: | + Include as much detail as possible, for example: + - A (perma)link to the docs in question + - Suggestions for how to change the docs + placeholder: "Example: The documentation doesn't cover my use case of the NPM package..." + validations: + required: true + + - type: dropdown + attributes: + label: Contributing + description: >- + This is an open source project and we welcome contributions. Do you want to + work on this issue? + options: + - 'Yes' + - 'No' + validations: + required: true \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..fe5ad99b --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,14 @@ + + +**Issue:** + +### Description + + \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 45d257b2..b0459ad0 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -61,7 +61,7 @@ representative at an online or offline event. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at -[INSERT CONTACT METHOD]. +javaistic@gmail.com. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the diff --git a/README.md b/README.md index 14fcc74f..f436c693 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,32 @@ -# **[Javaistic](https://javaistic.vercel.app/?utm_source=github&utm_medium=readme-header&utm_campaign=javaistic) ![Stars](https://badgen.net/github/stars/javaistic/javaistic) ![Release](https://badgen.net/github/release/javaistic/javaistic) [![CodeQL](https://github.com/javaistic/javaistic/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/javaistic/javaistic/actions/workflows/codeql-analysis.yml)** +
+ +
+ + + + +
+ +### [![Depfu](https://badges.depfu.com/badges/b0bc0e5fa34d75e54478a4e37b1b2d72/status.svg)](https://depfu.com) [![Stars](https://badgen.net/github/stars/javaistic/javaistic)](https://github.com/javaistic/javaistic/stargazers) [![Release](https://badgen.net/github/release/javaistic/javaistic)](https://github.com/javaistic/javaistic/releases) [![CodeQL](https://github.com/javaistic/javaistic/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/javaistic/javaistic/actions/workflows/codeql-analysis.yml) [![License](https://badgen.net/github/license/javaistic/javaistic)](LICENSE) [![Better Uptime Badge](https://betteruptime.com/status-badges/v1/monitor/8a3u.svg)](https://javaistic.betteruptime.com/?utm_source=status_badge) + +
+ +
[![javaistic](.github/img/javaistic-readme.png)](https://javaistic.vercel.app/?utm_source=github&utm_medium=readme-image&utm_campaign=javaistic) -### **Javaistic - Java learning made simple.**
-## **Website : [javaistic.vercel.app](https://javaistic.vercel.app/?utm_source=github&utm_medium=readme-link&utm_campaign=javaistic)** +## Website ⟶ [javaistic.vercel.app](https://javaistic.vercel.app/?utm_source=github&utm_medium=readme-link&utm_campaign=javaistic) -## **[Site Status](https://javaistic.betteruptime.com/) [![Better Uptime Badge](https://betteruptime.com/status-badges/v1/monitor/8a3u.svg)](https://betteruptime.com/?utm_source=status_badge)** +## About + +A Java Programming learning website packed with information and programs ranging from basics , arrays , string programs to 2D arrays , recursion , matrices and many more. + +## [Site Status](https://javaistic.betteruptime.com/) ![Stats](https://badgen.net/uptime-robot/status/m788498503-abfbb35c24db9355ed897d6d) ![Stats](https://badgen.net/uptime-robot/day/m788498503-abfbb35c24db9355ed897d6d) @@ -18,15 +34,54 @@ ![Stats](https://badgen.net/uptime-robot/month/m788498503-abfbb35c24db9355ed897d6d) ![Stats](https://badgen.net/uptime-robot/response/m788498503-abfbb35c24db9355ed897d6d) -## **Description** +## 🪴 Project Activity -A Java Programming learning website packed with information and programs ranging from basics , arrays , string programs to 2D arrays , recursion , matrices and many more. +![Alt](https://repobeats.axiom.co/api/embed/3df6f52cbd6d58e6c248f9457081834adf6459e5.svg "Repobeats analytics image") + +## Contributing +If you're interested in contributing to Javaistic Documentation, please read our [contributing docs](CONTRIBUTING.md) before submitting a pull request. + +## For developing locally + +Javaistic uses [Next.js](https://nextjs.org/) for its documentation. Here is how you can run the project locally: + +1. Clone this repo + + ```sh + git clone https://github.com/javaistic/javaistic.git + ``` + +2. Go into the project root directory + + ```sh + cd javaistic + ``` + +3. Install JS dependencies + + ```sh + yarn + ``` + +4. Start the dev server + + ```sh + yarn dev + ``` + +## Community + +The Javaistic community can be found on [GitHub Discussions](https://github.com/javaistic/javaistic/discussions), where you can ask questions, voice ideas, and share your projects. + +To chat with other community members, you can join the [Javaistic Discord](https://javaistic.vercel.app/discord) -## **[License](LICENSE)** +Our [Code of Conduct](CODE_OF_CONDUCT.md) applies to all Javaistic community channels. + -![License](https://badgen.net/github/license/javaistic/javaistic) +## Author +- Arghya Ghosh [(@uiuxarghya)](https://twitter.com/uiuxarghya) -## **Sponsors** +## Sponsors A special thanks to our sponsors: diff --git a/package.json b/package.json index ef9edc20..e0e660af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "javaistic", - "version": "1.5.0", + "version": "1.7.0", "description": "The official website for Javaistic.", "private": true, "main": "index.js", @@ -23,20 +23,20 @@ "@badrap/bar-of-progress": "^0.1.2", "@docsearch/react": "^1.0.0-alpha.28", "@formspree/react": "^2.2.4", - "@headlessui/react": "^1.4.2", + "@headlessui/react": "^1.4.3", "@heroicons/react": "^1.0.5", "@juggle/resize-observer": "^3.3.1", "@mdx-js/loader": "^1.6.22", "@mdx-js/react": "^1.6.22", - "@next/bundle-analyzer": "^12.0.7", - "@next/mdx": "^12.0.7", + "@next/bundle-analyzer": "^12.0.9", + "@next/mdx": "^12.0.9", "@reach/rect": "^0.16.0", "@silvenon/remark-smartypants": "^1.0.0", "@sindresorhus/slugify": "^1.1.0", "@svgr/webpack": "^5.5.0", "@tailwindcss/jit": "^0.1.18", "@tailwindcss/typography": "^0.4.1", - "autoprefixer": "^10.4.0", + "autoprefixer": "^10.4.2", "babel-plugin-preval": "^5.0.0", "clsx": "^1.1.1", "dlv": "^1.1.3", @@ -47,16 +47,16 @@ "glob": "^7.2.0", "intersection-observer": "^0.12.0", "minimatch": "^3.0.4", - "next": "^12.0.7", + "next": "^12.0.9", "next-themes": "^0.0.15", - "postcss": "^8.4.4", + "postcss": "^8.4.5", "postcss-focus-visible": "^5.0.0", "postcss-import": "^14.0.2", "postcss-nested": "^5.0.6", - "prismjs": "^1.25.0", + "prismjs": "^1.26.0", "react": "^17.0.2", "react-dom": "^17.0.2", - "react-intersection-observer": "^8.33.0", + "react-intersection-observer": "^8.33.1", "redent": "^3.0.0", "sharp": "^0.29.3", "simple-functional-loader": "^1.2.1", @@ -65,18 +65,19 @@ "unist-util-visit": "^2.0.3" }, "devDependencies": { - "@babel/core": "^7.16.0", - "@types/react": "^17.0.37", + "@babel/core": "^7.16.12", + "@types/react": "^17.0.38", "@typescript-eslint/eslint-plugin": "5.6.0", "@typescript-eslint/parser": "5.6.0", "babel-eslint": "10.1.0", "eslint": "7.32.0", - "eslint-config-next": "^12.0.7", + "eslint-config-next": "^12.0.9", "eslint-config-react-app": "^6.0.0", "eslint-plugin-flowtype": "8.0.3", "eslint-plugin-import": "2.25.3", "prettier": "^2.5.1", - "typescript": "^4.5.3", - "webpack": "^5.65.0" + "prettier-plugin-tailwindcss": "^0.1.4", + "typescript": "^4.5.5", + "webpack": "^5.67.0" } } diff --git a/redirects.json b/redirects.json index bfe8dfe8..999d445e 100644 --- a/redirects.json +++ b/redirects.json @@ -5,7 +5,6 @@ "destination": "https://github.com/javaistic/javaistic/discussions", "permanent": false }, - { "source": "/docs/slug", "destination": "/docs/slug", "permanent": false }, { "source": "/community", "destination": "https://discord.gg/RkHJqvK9r8", "permanent": false }, { "source": "/changelog", "destination": "https://javaistic-changelog.vercel.app/", "permanent": false }, { "source": "/license", "destination": "https://raw.githubusercontent.com/javaistic/javaistic/main/LICENSE", "permanent": false }, diff --git a/remark/prism-diff-highlight.js b/remark/prism-diff-highlight.js index 31bdf229..344a808f 100644 --- a/remark/prism-diff-highlight.js +++ b/remark/prism-diff-highlight.js @@ -1,7 +1,8 @@ // https://github.com/PrismJS/prism/blob/master/plugins/diff-highlight/prism-diff-highlight.js module.exports = (Prism) => { var LANGUAGE_REGEX = /diff-([\w-]+)/i - var HTML_TAG = /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/gi + var HTML_TAG = + /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/gi //this will match a line plus the line break while ignoring the line breaks HTML tags may contain. var HTML_LINE = RegExp( /(?:__|[^\r\n<])*(?:\r\n?|\n|(?:__|[^\r\n<])(?![^\r\n]))/.source.replace(/__/g, function () { diff --git a/remark/utils.js b/remark/utils.js index 5183fd96..5eff169e 100644 --- a/remark/utils.js +++ b/remark/utils.js @@ -3,7 +3,8 @@ const loadLanguages = require('prismjs/components/') loadLanguages() require('./prism-diff-highlight')(Prism) -const HTML_TAG = /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/gi +const HTML_TAG = + /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/gi const PSEUDO_CLASSES = [ 'active', 'any-link', diff --git a/remark/withSyntaxHighlighting.js b/remark/withSyntaxHighlighting.js index 9394e3d7..083537ac 100644 --- a/remark/withSyntaxHighlighting.js +++ b/remark/withSyntaxHighlighting.js @@ -17,7 +17,9 @@ module.exports.withSyntaxHighlighting = () => { if (node.lang !== null) { node.type = 'html' node.value = [ - `
`, + `
`, `
`,
diff --git a/src/components/Button.js b/src/components/Button.js
index ff9dec8e..7291fcda 100644
--- a/src/components/Button.js
+++ b/src/components/Button.js
@@ -3,7 +3,7 @@ import Link from 'next/link'
 export function Button({ children, ...props }) {
   return (
     
-      
+      
         {children}
         
           
diff --git a/src/components/ClassTable.js b/src/components/ClassTable.js
index ec2cba86..60de514c 100644
--- a/src/components/ClassTable.js
+++ b/src/components/ClassTable.js
@@ -126,40 +126,40 @@ export const ClassTable = memo(
     })
 
     return (
-      
+
Default class reference
12 } )} > {custom || ( - +
- {preview && ( - @@ -176,7 +176,7 @@ export const ClassTable = memo(
-
Class
+
+
Class
Properties
-
+
+
Preview 
{stringifyProperties(transformProperties({ selector, properties }), { filter: filterProperties, diff --git a/src/components/CodeSample.js b/src/components/CodeSample.js index 7cda6db0..ae280dd4 100644 --- a/src/components/CodeSample.js +++ b/src/components/CodeSample.js @@ -73,7 +73,7 @@ function Snippet({ color, snippet }) { >
+    
{preview ? (