vue-simple-docs's People
vue-simple-docs's Issues
Display component list as a tree-like list
requires #4
In the main page we display a list of documented components.
Let's display it as a tree-like map to mirror the source directory structure.
The source data will be stored in docs/src/generated/index.ts
Generate composable's(or any file) docs
Make extract methods more universal, so generating a documentation of any file is possible.
Add more tags to document not component files.
Route and page to display subdirectory file list
related #5
For now, each item in the list is a link to ComponentDetails page.
But some of the items are subdirectory names, they should be links to a page where the subdirectory files are displayed.
Add search
Add search in the nav bar to find files.
in App.vue
const searchItems = files.children.reduce((links, child) => {}, [{ name, routeObject }]);
Adjust FE to display docs of any file
requires #9
Now the vue app is set to display documentation of vue components.
Adjust it to display docs of any file
Setup developer flow for node
Instead using tsc every time you made changes to node scripts, set up something like 'hot-reload'
Some ideas in the link below:
https://blog.logrocket.com/configuring-nodemon-with-typescript/
Fix prettier options, and make them the same all over the project.
Add husky and in pre-commit hook run linter/formatter.
allow multiple source directories
For now, the script assumes that sourceDir in docs.config is just one directory.
Allow to provide several directories in array.
Adjust function that generates data objects to work when several directories are provided.
Expand search - find file properties
requires #7
Expand search functionality and allow searching not only by file name but also their properties, e.g. name of method.
Typescript verbatimModuleSyntax option not recognised
Tests
Create README
Test and fix the build in a sample project
For now the documentation is generated within the vue simple docs repo. Try to install the build in a sample Vue project, add fixes.
Generate file structure of the documented files
E.g.
source dir is 'components' folder, inside there is another folder 'web' and Component2. Inside web folder there is Component1.
We create in docs/generated/index.ts a list of documented files.
Let's create a list that will mirror the source directory files structure.
Now in index.ts:
const components = [{name: 'Component1'}, {name: 'Component2'}]
Expected:
const components = [{name: 'web', type: 'folder', children: [{name: 'Component1', type: 'file'}]}, {name: 'Component2', type: 'file'}]
Setup production builds
There is a script that creates esm and cjs builds.
The esm is not working properly.
I'm not sure how it should be done that when a developer installs the package, the right build (esm/cjs) will be used.
Fix methods parameters regex
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.