def add_page(filename, content)
      full_filename = "#{@dir}/#{filename}"

      if @pages.detect { |f| f.wiki_path == full_filename }
        page = @pages.find { |f| f.wiki_path == full_filename }
      else
        page = Gitnesse::Wiki::Page.new(full_filename)
        @pages << page
      end

      page.write(content)
      @repo.add(filename)
      page
    end
def add_page(filename, content)
      full_filename = "#{@dir}/#{filename}"

      if @pages.detect { |f| f.wiki_path == full_filename }
        page = @pages.find { |f| f.wiki_path == full_filename }
      else
        page = Gitnesse::Wiki::Page.new(full_filename)
        @pages << page
      end

      page.write(content)
      @repo.add(filename)
      page
    end
Public: Adds or updates wiki page

 filename - filename for wiki page
 content - content for page

 Returns a Wiki::Page