Skip to content

Commit 9a9bd8b

Browse files
committed
Update
1 parent a2292e8 commit 9a9bd8b

File tree

4 files changed

+75
-0
lines changed

4 files changed

+75
-0
lines changed

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
11
# CodeDocify
22
CodeDocify | Modern Nodejs, JavaScript, tailwindcss and twig based automated documentation framework
3+
4+
codedocify/
5+
├── src/
6+
│ ├── cli/
7+
│ │ └── buildDocs.js
8+
│ ├── editor/
9+
│ │ ├── index.html
10+
│ │ ├── scripts/
11+
│ │ │ └── main.js
12+
│ │ └── styles/
13+
│ │ └── tailwind.css
14+
│ ├── templates/
15+
│ │ └── index.twig
16+
│ └── index.js
17+
├── search/
18+
│ ├── indexBuilder.js
19+
│ └── algoliaUploader.js
20+
├── public/
21+
│ ├── assets/
22+
│ │ ├── js/
23+
│ │ │ └── bundle.js (built)
24+
│ │ └── css/
25+
│ │ └── tailwind.css (built)
26+
│ └── index.html (compiled)
27+
├── tailwind.config.js
28+
├── postcss.config.js
29+
├── webpack.config.js
30+
├── package.json

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {}
5+
}
6+
};

tailwind.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
prefix: 'codo-', // Custom prefix for Tailwind classes
4+
content: [
5+
'./src/**/*.js',
6+
'./src/**/*.html',
7+
'./src/**/*.twig',
8+
'./public/**/*.html',
9+
],
10+
theme: {
11+
extend: {},
12+
},
13+
plugins: [],
14+
};

webpack.config.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
entry: './src/editor/scripts/main.js',
5+
output: {
6+
filename: 'bundle.js',
7+
path: path.resolve(__dirname, 'public/assets/js'),
8+
},
9+
module: {
10+
rules: [
11+
{
12+
test: /\.js$/,
13+
exclude: /node_modules/,
14+
use: {
15+
loader: 'babel-loader',
16+
},
17+
},
18+
{
19+
test: /\.css$/i,
20+
use: ['style-loader', 'css-loader', 'postcss-loader'],
21+
},
22+
],
23+
},
24+
resolve: {
25+
extensions: ['.js'],
26+
},
27+
};

0 commit comments

Comments
 (0)