Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[windoc] Pick up external documentation installed on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
garuma committed Jun 6, 2012
1 parent 2a950a6 commit 9a40fe7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions windoc/WinDoc/Program.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace WinDoc
{ {
static class Program static class Program
{ {
static readonly string externalMonodocPath = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.CommonApplicationData), "Monodoc");
static string monodocDir; static string monodocDir;


[STAThread] [STAThread]
Expand All @@ -31,6 +32,8 @@ static void Main(string[] args)
Root = RootTree.LoadTree (null); Root = RootTree.LoadTree (null);
foreach (var dir in docSources) foreach (var dir in docSources)
Root.AddSource (dir); Root.AddSource (dir);
if (Directory.Exists (externalMonodocPath))
Root.AddSource (externalMonodocPath);


var winDocPath = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData), "WinDoc"); var winDocPath = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData), "WinDoc");
if (!Directory.Exists (winDocPath)) if (!Directory.Exists (winDocPath))
Expand Down

0 comments on commit 9a40fe7

Please sign in to comment.