- Create or use an existing DNN installation on your dev machine
- Install the latest _Install.zip file from the releases - this will run the SQL scripts necessary
- Go to DesktopModules/MVC/Connect
- Delete the DocBrowser folder
- Git clone https://github.com/DNN-Connect/DocBrowser.git here (i.e. DesktopModules/MVC/Connect)
- That should put the DocBrowser folder back
- Switch to that folder and run yarn to restore all packages
I use VS Code for the front-end and VS Community for all cs stuff.
- Fire up VS code in the module folder
- Start a console and type "npm run watch". This will build and watch for any file changes.
In a console type "gulp css" and it should build the less files and compile that to module.css
- Instantiate the module
- Make sure you've built the React script (if you use the source version) using npm run build or npm run watch
- If logged in as admin you should see a "Reset" button
- Click that - nothing will happen
- Go to Portals/[portalid]/Docs
- You'll see a folder that is a number. This number is the module nr of your instantiated module
- Git clone https://github.com/DNNCommunity/dnn-docs.git
- Rename the dnn-docs folder to the module id (i.e. you need to replace the old moduleid folder with the repo)
- Click the reset button on the module again - now it should be working. It may take a few minutes to load everything.
- Reload page and start playing