This project is the home for all squirrel-u contributions.
squirrel-u is a starter kit for growing your own learning tree within your company.
Acorns feed Squirrels, can be buried (and forgotten) or planted to become Oak trees, which beget more Acorns.
Developers and teams are hungry for knowledge. Knowledge is formed around a few Acorns and grows into diverse branches of expertise through study, practice and sharing with others.
The internet provides a rich "food supply" for widely available tech topics new and old. However some technical information cannot be found via Google or stackoverflow.com:
- product architecture,
- internal systems,
- domain knowledge,
- coding practices,
- release procedures
- technologies as applied
As organizations grow, this unique information evolves and becomes tribal knowledge.
Tribes repeatedly share via word of mouth and email. At some tipping point, conscientious people put these bits into Powerpoint or Word documents and load into Sharepoint or Jive.
Sadly from that point these documents become hard to find and are rarely maintained.
squirrel-u is a packaged framework for helping teams transform tribal knowledge into learning trees. It is based on GitHub Pages and Markdown. It utilizes a collaborative workflow to build documentation and delivers a consolidated information view and search capability.
GitHub Pages does a beautiful job of rendering Markdown content into html and serving it from your Repository site.
This package comes with Setup, Framework and Sample Content:
- setup - IntelliJ setup of Ruby, local Jekyll
- framework - Bootstrap, lunr search, jQuery based hierarchy navigator
- sample content - serves as further documentation on all of the above topics.
-
Fork a copy of the squirrel-u repository to your public GitHub Account: https://github.com/zippyzsquirrel/squirrel-u.git
-
Select the gh-pages branch instead of master.
-
Read and experiment with repository content directly in your GitHub fork.
-
View your content at: http://zippyzsquirrel.github.io/squirrel-u/
Once you've got the hang of things, you may want to create and maintain content from your IDE and serve it locally for testing. We provide a setup for IntelliJ's IDEA; feel free to adapt for your IDE (and contribute it if you are inclined to do so).
###IntelliJ
- IntelliJ (Ultimate or Community Edition)
- IntelliJ Plugins
- Required
- BashSupport
- Suggested
- VCS watch
- Markdown
- Markdown Support
- Markdown Navigator
- Required
-
Configure IntelliJ VCS to use GitHub (if not already done)
- Open IntelliJ from any new or existing project
- Open Preferences -> Version Control -> GitHub.
- Enter url: https://github.com/
- Specify your GitHub account name and password
-
Windows Users: Install Git to your machine
-
Create a new IntelliJ project from Version Control File -> New -> Project From Version Control -> GitHub
- Git Repository URL: https://github.com/yourFork/squirrel-u.git
- Parent Directory: /Users/userName/IdeaProjects/ or C:\Users*userName*\IdeaProjects\
- Project Name: squirrel-u
-
Run the appropriate Build Jekyll configuration ( Build Jekyll - Mac or Build Jekyll - Windows )
- For Windows this expects that Git was installed to C:\Development\Git, if
this is not correct you will need to Edit the Run Configurations to change
this path.
- If you do this the Build_Jekyll___Windows.xml will be added to your
version control files as changed, just move this to another change list
(right click and Select Move to Another Changelist) so that you do not check in changes to this file accidentally.
- If you do this the Build_Jekyll___Windows.xml will be added to your
version control files as changed, just move this to another change list
- On Windows if you do not have Ruby installed and on your path it will be
downloaded and the install will be started for you
- When Prompted install Ruby to C:\Development\Ruby
- On this same screen check the checkbox for 'Add Ruby Executables to your PATH', this is required and if not done the installation will not behave correctly in further sections.
- Once this is completed the Ruby Devkit will be downloaded and installed, the path this gets downloaded to should default to C:\Development\Ruby\dev_kit, please verify this when prompted.
- After the Devkit is installed you will need to close the open terminal window and restart IntelliJ
- When IntelliJ reloads run Build Jekyll - Windows again, this will finish the Ruby setup
- For Windows this expects that Git was installed to C:\Development\Git, if
this is not correct you will need to Edit the Run Configurations to change
this path.
-
Verify installation worked by running the appropriate Run Jekyll configuration
-
This will run a different shell script and will start the jekyll server. This can take several minutes to run the first time you run it, at the end of it you should see a message in the terminal saying the following:
-
done in 67.513 seconds. Auto-regeneration: enabled for 'C:/git/squirrel-u' Configuration file: C:/git/squirrel-u/_config.yml Server address: http://127.0.0.1:4000 Server running... press ctrl-c to stop. ```
-
You can now go to http://127.0.0.1:4000 and see your squirrel-u running locally!
-
Ensure that your origin's push remotes is setup correctly:
git remote set-url --push origin https://yourUserName@github.com/yourUserName/squirrel-u.git ```
- Visual Studio 2010 or later
- Visual Studio Plugins
- Required
- BashSupport
- Git Source Control Provider (VS2010, VS2012, VS2013, VS2015)
- Suggested
- Required
-
Configure Visual Studio Source Control to use GitHub (if not already done)
- Open Visual Studio from any new or existing project
- Open Tools -> Options -> Source Control -> Plug-in Selection
- Select Microsoft Git Provider
- In Team Explorer Home, select Settings -> Git Settings
- Enter your user name, email address, and default repository location
-
Windows Users: Install Git to your machine
-
Clone the forked repository to a local repository by doing the following
- Click the Connect to Team Projects icon on the Team Explorer pane
- Expand the Clone drop down under Local Git Repositories
- Fill in the URL for the forked repository.
- Fill in the directory where you want the local repository placed. THIS DIRECTORY SHOULD NOT EXIST YET
- Click Clone to create the local directory and clone the repository.
- Click the Connect to Team Projects icon on the Team Explorer pane
-
Create a new Visual Studio project from Existing Code File -> New -> Project From Existing Code
- Select any project type you want, this does not effect the outcome, Click next.
- Specify the project details as follows:
- Where are the files?: Navigate to the location of the local repository
- Name: Name the project as you see fit.
- Output Type: Class Library
- Click Finish
-
Open a command window and navigate to the local squirrel-u repository.
-
Enter the command
C:\Development\Git\git-bash.exe solutiondir/setup/scripts/runJekyllGrunt.sh
, where<solutiondir>
is the directory where your squirrel-u fork resides.- For Windows this expects that Git was installed to C:\Development\Git, if
this is not correct you will need to Edit the Run Configurations to change
this path.
- If you do this the Build_Jekyll___Windows.xml will be added to your
version control files as changed, just move this to another change list
(right click and Select Move to Another Changelist) so that you do not check in changes to this file accidentally.
- If you do this the Build_Jekyll___Windows.xml will be added to your
version control files as changed, just move this to another change list
- On Windows if you do not have Ruby installed and on your path it will be
downloaded and the install will be started for you
- When Prompted install Ruby to C:\Development\Ruby
- On this same screen check the checkbox for 'Add Ruby Executables to your PATH', this is required and if not done the installation will not behave correctly in further sections.
- Once this is completed the Ruby Devkit will be downloaded and installed, the path this gets downloaded to should default to C:\Development\Ruby\dev_kit, please verify this when prompted.
- After the Devkit is installed you will need to close the open terminal window and restart IntelliJ
- When IntelliJ reloads run Build Jekyll - Windows again, this will finish the Ruby setup
- For Windows this expects that Git was installed to C:\Development\Git, if
this is not correct you will need to Edit the Run Configurations to change
this path.
-
This can take several minutes to run the first time you run it, at the end of it you should see a message in the terminal saying the following:
done in 67.513 seconds. Auto-regeneration: enabled for 'C:/git/squirrel-u' Configuration file: C:/git/squirrel-u/_config.yml Server address: http://127.0.0.1:4000 Server running... press ctrl-c to stop.
-
You can now go to http://127.0.0.1:4000 and see your squirrel-u running locally!
-
Ensure that your origin's push remotes is setup correctly:
git remote set-url --push origin https://yourUserName@github.com/yourUserName/squirrel-u.git ```
- Install Node.js and Grunt.js on the IIS server where you want to serve the squirrel-u website.
- Install Jekyll on the IIS server where you want to serve the squirrel-u website by following the directions here.
- Set up a static website on your IIS server by following the directions on TechNet.
- Configure an automated, or manual, deployment process that will publish the squirrel-u files to a directory of your choice on you IIS server.
- Edit the Gruntfile.js file in your squirrel-u solution so that the text "_site", in the shell:jekyllBuild task is replaced with the path to the root directory of the static website you set up.
- Create a windows task that runs on startup to run the command "path-to-squirrel-u-files/grunt squirrelWatch" where
<path-to-squirrel-u-files>
is the directory of the location where the squirrel-u files are published to your IIS server in step 2. - Now any changes that are published to the website's folder on the IIS server will trigger a Jekyll build that pushes all the updated HTML files from the build to the root directory of your static website. After the build completes, navigating to the website via a browser will display the updated site.
A big thanks to the following folks who've helped shape the ideas and content that went into this repository:
- Jim Fox
- Melissa Mosser
- Maria Jeannet
- Dan Ben
- Isaac Higgins
- Michael Lively
If you like this repository and would like to help make it even better, feel free to create an issue or submit a pull request with changes.